Skip to content

Commit 19b43ee

Browse files
kfprimmalexrp
authored andcommitted
compiler: Fix -m<os>-version-min=... ordering
1 parent d92649d commit 19b43ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compilation.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5696,11 +5696,11 @@ pub fn addCCArgs(
56965696
// Pass the proper -m<os>-version-min argument for darwin.
56975697
const ver = target.os.version_range.semver.min;
56985698
argv.appendAssumeCapacity(try std.fmt.allocPrint(arena, "-m{s}{s}-version-min={d}.{d}.{d}", .{
5699+
@tagName(os),
56995700
switch (target.abi) {
57005701
.simulator => "-simulator",
57015702
else => "",
57025703
},
5703-
@tagName(os),
57045704
ver.major,
57055705
ver.minor,
57065706
ver.patch,

0 commit comments

Comments
 (0)