mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
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.
This commit is contained in:
parent
bc8ace2a6d
commit
100b76e17a
@ -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"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user