mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
aro does not have -mmacos version flags or -Wno-overriding-option
This commit is contained in:
parent
3764f7b0f2
commit
e05073b9e4
1 changed files with 2 additions and 3 deletions
|
|
@ -6731,6 +6731,7 @@ fn addCommonCCArgs(
|
|||
c_frontend: Config.CFrontend,
|
||||
) !void {
|
||||
const target = &mod.resolved_target.result;
|
||||
const is_clang = c_frontend == .clang;
|
||||
|
||||
if (target_util.supports_fpic(target)) {
|
||||
// PIE needs to go before PIC because Clang interprets `-fno-PIE` to imply `-fno-PIC`, which
|
||||
|
|
@ -6740,7 +6741,7 @@ fn addCommonCCArgs(
|
|||
}
|
||||
|
||||
switch (target.os.tag) {
|
||||
.ios, .macos, .tvos, .watchos => |os| {
|
||||
.ios, .macos, .tvos, .watchos => |os| if (is_clang) {
|
||||
try argv.ensureUnusedCapacity(2);
|
||||
// Pass the proper -m<os>-version-min argument for darwin.
|
||||
const ver = target.os.version_range.semver.min;
|
||||
|
|
@ -6912,8 +6913,6 @@ fn addCommonCCArgs(
|
|||
}
|
||||
}
|
||||
|
||||
const is_clang = c_frontend == .clang;
|
||||
|
||||
// Only C-family files support these flags.
|
||||
switch (ext) {
|
||||
.c,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue