Function addOptionPath [src]
The value is the path in the cache dir.
Adds a dependency automatically.
Prototype
pub fn addOptionPath( options: *Options, name: []const u8, path: LazyPath, ) void Parameters
options: *Optionsname: []const u8path: LazyPath Source
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);
}