mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
compiler: Fix -m<os>-version-min=... ordering
This commit is contained in:
parent
160f2dabed
commit
23ab05f1f5
1 changed files with 1 additions and 1 deletions
|
|
@ -5634,11 +5634,11 @@ pub fn addCCArgs(
|
|||
// Pass the proper -m<os>-version-min argument for darwin.
|
||||
const ver = target.os.version_range.semver.min;
|
||||
argv.appendAssumeCapacity(try std.fmt.allocPrint(arena, "-m{s}{s}-version-min={d}.{d}.{d}", .{
|
||||
@tagName(os),
|
||||
switch (target.abi) {
|
||||
.simulator => "-simulator",
|
||||
else => "",
|
||||
},
|
||||
@tagName(os),
|
||||
ver.major,
|
||||
ver.minor,
|
||||
ver.patch,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue