diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-21 19:22:50 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-21 19:22:50 -0500 |
| commit | 6305ce828b0685ceb646fae87a963f034d3bcdf0 (patch) | |
| tree | 22e7a54025c9381fa5354ccc693bc798f5c74844 /lib/std/build.zig | |
| parent | 570973761a219cde2e7ab0b3a22fe0696a9b1e3e (diff) | |
| download | zig-6305ce828b0685ceb646fae87a963f034d3bcdf0.tar.gz zig-6305ce828b0685ceb646fae87a963f034d3bcdf0.zip | |
fix regression in standardTargetOptions
Diffstat (limited to 'lib/std/build.zig')
| -rw-r--r-- | lib/std/build.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig index 43cc4a2150..6e9031ee31 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -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 } } |
