pub fn addArtifactArg2(run: *Run, artifact: *Step.Compile, options: PathArgOptions) void run: *Runartifact: *Step.Compileoptions: PathArgOptions275
276
277
278
279
280
281
282
283
284
285
286
287
288
289pub fn addArtifactArg2(run: *Run, artifact: *Step.Compile, options: PathArgOptions) void {
const graph = run.step.owner.graph;
const arena = graph.arena;
const prefixed_artifact: DecoratedArtifact = .{
.prefix = graph.dupeString(options.prefix),
.artifact = artifact,
.suffix = graph.dupeString(options.suffix),
.make_absolute = options.make_absolute,
};
run.argv.append(arena, .{ .artifact = prefixed_artifact }) catch @panic("OOM");
const bin_file = artifact.getEmittedBin();
bin_file.addStepDependencies(&run.step);
}