Skip to content

Passing options to zig compiler #2613

@daurnimator

Description

@daurnimator

With C, you can pass in constants to the build process via -D on command line. This can be used for configuring the build artifact in different ways.

I can't seem to find the equivalent in zig. e.g. I might expect that zig build-lib -Dmyarg=foo makes something show up in somewhere like builtin.arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions