authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-01 13:08:34-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:13-07:00
loge895d582143f74c9e3a2d06083017e74ad67b770
tree95ca32c6c364fbdeff82f13014906f60b309992d
parent01299864e2fc87aa597815743a4d8552e8a0129e

build system: give RunStep a better default step name


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Build.zig+1-1
...@@ -618,7 +618,7 @@ pub fn addRunArtifact(b: *Build, exe: *CompileStep) *RunStep {...@@ -618,7 +618,7 @@ pub fn addRunArtifact(b: *Build, exe: *CompileStep) *RunStep {
618 // It doesn't have to be native. We catch that if you actually try to run it.618 // It doesn't have to be native. We catch that if you actually try to run it.
619 // Consider that this is declarative; the run step may not be run unless a user619 // Consider that this is declarative; the run step may not be run unless a user
620 // option is supplied.620 // option is supplied.
621 const run_step = RunStep.create(b, b.fmt("run {s}", .{exe.step.name}));621 const run_step = RunStep.create(b, b.fmt("run {s}", .{exe.name}));
622 run_step.addArtifactArg(exe);622 run_step.addArtifactArg(exe);
623623
624 if (exe.kind == .test_exe) {624 if (exe.kind == .test_exe) {