Function addOptions [src]

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. In other words, this provides a way to expose build.zig values to Zig source code with @import. Related: Module.addOptions.

Prototype

pub fn addOptions(b: *Build) *Step.Options

Parameters

b: *Build

Source

pub fn addOptions(b: *Build) *Step.Options { return Step.Options.create(b); }