Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

addPassthruArgs

Appends the extra arguments provided to zig build to 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.

Run.addPassthruArgs
pub fn addPassthruArgs(run: *Run) void

File

Code

pub fn addPassthruArgs(run: *Run) void {
    const graph = run.step.owner.graph;
    const arena = graph.arena;
    run.argv.append(arena, .passthru) catch @panic("OOM");
}