Function addOptions [src]
Converts a set of key-value pairs into a Zig source file, and then inserts it into
the Module's import table with the specified name. This makes the options importable
via @import("module_name").
Prototype
pub fn addOptions(m: *Module, module_name: []const u8, options: *Step.Options) void
Parameters
m: *Module
module_name: []const u8
options: *Step.Options
Source
pub fn addOptions(m: *Module, module_name: []const u8, options: *Step.Options) void {
addImport(m, module_name, options.createModule());
}