pub fn addArg(run: *Run, arg: []const u8) void run: *Runarg: []const u8562
563
564
565
566pub fn addArg(run: *Run, arg: []const u8) void {
const graph = run.step.owner.graph;
const arena = graph.arena;
run.argv.append(arena, .{ .bytes = graph.dupeString(arg) }) catch @panic("OOM");
}
Appends the contents of
arg, verbatim, to the command line that will be passed to the process being run.If
argis an input file,addFileInput(or related function) must be used instead to ensure correct cache behavior.If
argis an output file,addOutputFileArg(or related function) must be used instead to ensure correct cache behavior.