Skip to content

Commit 100b76e

Browse files
committed
std.Build.Step.Compile: clarify step name
In particular this makes it more obvious what step is compiling a unit test versus which is running it.
1 parent bc8ace2 commit 100b76e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/std/Build/Step/Compile.zig

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,8 @@ pub fn create(owner: *std.Build, options: Options) *Compile {
378378
@panic("the root Module of a Compile step must be created with a known 'target' field");
379379
const target = resolved_target.result;
380380

381-
const step_name = owner.fmt("{s} {s}{s} {s}", .{
382-
switch (options.kind) {
383-
.exe => "zig build-exe",
384-
.lib => "zig build-lib",
385-
.obj => "zig build-obj",
386-
.@"test" => "zig test",
387-
.test_obj => "zig test-obj",
388-
},
381+
const step_name = owner.fmt("compile {s} {s}{s} {s}", .{
382+
@tagName(options.kind),
389383
name_adjusted,
390384
@tagName(options.root_module.optimize orelse .Debug),
391385
resolved_target.query.zigTriple(owner.allocator) catch @panic("OOM"),

0 commit comments

Comments
 (0)