fix regression in standardTargetOptions

This commit is contained in:
Andrew Kelley 2020-02-21 19:22:50 -05:00
parent 570973761a
commit 6305ce828b
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

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