mirror of
https://github.com/ziglang/zig.git
synced 2026-01-30 03:03:46 +00:00
fix regression in standardTargetOptions
This commit is contained in:
parent
570973761a
commit
6305ce828b
@ -535,7 +535,7 @@ pub const Builder = struct {
|
||||
return Target.Native;
|
||||
} else {
|
||||
const target_str = self.option([]const u8, "target", "the target to build for") orelse return Target.Native;
|
||||
return Target.parse(target_str) catch unreachable; // TODO better error message for bad target
|
||||
return Target.parse(.{ .arch_os_abi = target_str }) catch unreachable; // TODO better error message for bad target
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user