addOptionPath
The value is the path in the cache dir. Adds a dependency automatically.
Function parameters
Parameters
Functions in this namespace
Functions
- addOptionPath
- The value is the path in the cache dir.
- getOutput
- Returns the main artifact of this Build Step which is a Zig source file
= .options
Values
- base_id
- = .options
Source
Implementation
pub fn addOptionPath(
options: *Options,
name: []const u8,
path: LazyPath,
) void {
const arena = options.step.owner.allocator;
options.args.append(arena, .{
.name = options.step.owner.dupe(name),
.path = path.dupe(options.step.owner),
}) catch @panic("OOM");
path.addStepDependencies(&options.step);
}