pub fn addPassthruArgs(run: *Run) void
Appends the extra arguments provided to zig build to the command line that will be passed to the process being run.
zig build
This causes the step to be considered to have side effects, disabling caching.
In the example command zig build run -- arg1 arg2, "arg1" and "arg2" will be passed to the process being run.
zig build run -- arg1 arg2
run: *Run
588 589 590 591 592
pub fn addPassthruArgs(run: *Run) void { const graph = run.step.owner.graph; const arena = graph.arena; run.argv.append(arena, .passthru) catch @panic("OOM"); }
Appends the extra arguments provided to
zig buildto the command line that will be passed to the process being run.This causes the step to be considered to have side effects, disabling caching.
In the example command
zig build run -- arg1 arg2, "arg1" and "arg2" will be passed to the process being run.