mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
aro does not have a pragma-pack warning
This commit is contained in:
parent
8cba6b1df8
commit
aa92c237e9
@ -6925,12 +6925,14 @@ fn addCommonCCArgs(
|
|||||||
.mm,
|
.mm,
|
||||||
.hmm,
|
.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()) {
|
if (target.os.tag == .windows and target.abi.isGnu()) {
|
||||||
// windows.h has files such as pshpack1.h which do #pragma packing,
|
// windows.h has files such as pshpack1.h which do #pragma packing,
|
||||||
// triggering a clang warning. So for this target, we disable this warning.
|
// triggering a clang warning. So for this target, we disable this warning.
|
||||||
try argv.append("-Wno-pragma-pack");
|
try argv.append("-Wno-pragma-pack");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mod.optimize_mode != .Debug) {
|
if (mod.optimize_mode != .Debug) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user