Skip to content

Pass options from build.zig to source #59

@SamTebbs33

Description

@SamTebbs33

Options can be passed from build.zig to any zig source file. This can be used for configuration and creating builds for a specific purpose, such as running extensive runtime tests.

The option is added by calling addBuildOption(...) on a LibObjExeStep (e.g. the result from addObject(...), then used by importing zig-cache/{object name}_build_options.zig.

Metadata

Metadata

Assignees

Labels

arch: noneAffects common code across architecturesenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions