authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-08-21 16:07:36-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-24 20:01:19-07:00
logaa92c237e9174e2f48d11c6c23ac41067fa9bb57
treeea87f760e9f0f258fd240036b494187d8d8461bd
parent8cba6b1df813279735bf831018489a9e03788413

aro does not have a pragma-pack warning


1 files changed, 7 insertions(+), 5 deletions(-)

src/Compilation.zig+7-5
......@@ -6925,12 +6925,14 @@ fn addCommonCCArgs(
69256925 .mm,
69266926 .hmm,
69276927 => {
6928 if (is_clang) try argv.append("-fno-spell-checking");
6928 if (is_clang) {
6929 try argv.append("-fno-spell-checking");
69296930
6930 if (target.os.tag == .windows and target.abi.isGnu()) {
6931 // windows.h has files such as pshpack1.h which do #pragma packing,
6932 // triggering a clang warning. So for this target, we disable this warning.
6933 try argv.append("-Wno-pragma-pack");
6931 if (target.os.tag == .windows and target.abi.isGnu()) {
6932 // windows.h has files such as pshpack1.h which do #pragma packing,
6933 // triggering a clang warning. So for this target, we disable this warning.
6934 try argv.append("-Wno-pragma-pack");
6935 }
69346936 }
69356937
69366938 if (mod.optimize_mode != .Debug) {