pub fn addOptions(b: *Build) *Step.Options
Create a set of key-value pairs that can be converted into a Zig source file and then inserted into a Zig compilation's module table for importing.
This provides a way to expose build.zig values to Zig source code with @import. Related: Module.addOptions.
@import
Module.addOptions
b: *Build
553 554 555
pub fn addOptions(b: *Build) *Step.Options { return Step.Options.create(b); }
Create a set of key-value pairs that can be converted into a Zig source file and then inserted into a Zig compilation's module table for importing.
This provides a way to expose build.zig values to Zig source code with
@import. Related:Module.addOptions.