diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-21 16:07:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-09-24 20:01:19 -0700 |
| commit | aa92c237e9174e2f48d11c6c23ac41067fa9bb57 (patch) | |
| tree | ea87f760e9f0f258fd240036b494187d8d8461bd /src/Compilation.zig | |
| parent | 8cba6b1df813279735bf831018489a9e03788413 (diff) | |
| download | zig-aa92c237e9174e2f48d11c6c23ac41067fa9bb57.tar.gz zig-aa92c237e9174e2f48d11c6c23ac41067fa9bb57.zip | |
aro does not have a pragma-pack warning
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index b50a158436..46cb4de08f 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -6925,12 +6925,14 @@ fn addCommonCCArgs( .mm, .hmm, => { - if (is_clang) try argv.append("-fno-spell-checking"); + if (is_clang) { + try argv.append("-fno-spell-checking"); - if (target.os.tag == .windows and target.abi.isGnu()) { - // windows.h has files such as pshpack1.h which do #pragma packing, - // triggering a clang warning. So for this target, we disable this warning. - try argv.append("-Wno-pragma-pack"); + if (target.os.tag == .windows and target.abi.isGnu()) { + // windows.h has files such as pshpack1.h which do #pragma packing, + // triggering a clang warning. So for this target, we disable this warning. + try argv.append("-Wno-pragma-pack"); + } } if (mod.optimize_mode != .Debug) { |
