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 } }