mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
std.Build.Step.Compile: restore previous step name
Print using the target query rather than the resolved target. This makes it print "native" when compiling for the native target.
This commit is contained in:
parent
4b667e7362
commit
ca77c3bacc
@ -251,7 +251,8 @@ pub fn create(owner: *std.Build, options: Options) *Compile {
|
||||
else
|
||||
owner.fmt("{s} ", .{name});
|
||||
|
||||
const target = options.root_module.target.?.result;
|
||||
const resolved_target = options.root_module.target.?;
|
||||
const target = resolved_target.result;
|
||||
|
||||
const step_name = owner.fmt("{s} {s}{s} {s}", .{
|
||||
switch (options.kind) {
|
||||
@ -262,7 +263,7 @@ pub fn create(owner: *std.Build, options: Options) *Compile {
|
||||
},
|
||||
name_adjusted,
|
||||
@tagName(options.root_module.optimize orelse .Debug),
|
||||
target.zigTriple(owner.allocator) catch @panic("OOM"),
|
||||
resolved_target.query.zigTriple(owner.allocator) catch @panic("OOM"),
|
||||
});
|
||||
|
||||
const out_filename = std.zig.binNameAlloc(owner.allocator, .{
|
||||
|
Loading…
Reference in New Issue
Block a user