diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-06-04 01:10:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-06-04 12:25:49 -0400 |
| commit | 100b76e17a7523edc04aa7fa97806c183c2b5a88 (patch) | |
| tree | a674548cc40b55b8713a43cd85694062cbdd4b11 /lib/std/Build | |
| parent | bc8ace2a6d0304887add4b6b6688d87aea34cf26 (diff) | |
| download | zig-100b76e17a7523edc04aa7fa97806c183c2b5a88.tar.gz zig-100b76e17a7523edc04aa7fa97806c183c2b5a88.zip | |
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.
Diffstat (limited to 'lib/std/Build')
| -rw-r--r-- | lib/std/Build/Step/Compile.zig | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index 7e8b782932..dd8c4158ce 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -378,14 +378,8 @@ pub fn create(owner: *std.Build, options: Options) *Compile { @panic("the root Module of a Compile step must be created with a known 'target' field"); const target = resolved_target.result; - const step_name = owner.fmt("{s} {s}{s} {s}", .{ - switch (options.kind) { - .exe => "zig build-exe", - .lib => "zig build-lib", - .obj => "zig build-obj", - .@"test" => "zig test", - .test_obj => "zig test-obj", - }, + const step_name = owner.fmt("compile {s} {s}{s} {s}", .{ + @tagName(options.kind), name_adjusted, @tagName(options.root_module.optimize orelse .Debug), resolved_target.query.zigTriple(owner.allocator) catch @panic("OOM"), |
