diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-21 18:10:31 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-09-24 20:01:19 -0700 |
| commit | e05073b9e4a7a7a860779d3977a98ee6cd4b6391 (patch) | |
| tree | d174d0d4d1f9a811757bc4203bc78f2d063114c4 /src/Compilation.zig | |
| parent | 3764f7b0f2b2cac05f7884c93b4da3898c72cd5d (diff) | |
| download | zig-e05073b9e4a7a7a860779d3977a98ee6cd4b6391.tar.gz zig-e05073b9e4a7a7a860779d3977a98ee6cd4b6391.zip | |
aro does not have -mmacos version flags or -Wno-overriding-option
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 46cb4de08f..c31a9ae012 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -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, |
