| ... | ... | @@ -6925,12 +6925,14 @@ fn addCommonCCArgs( |
| 6925 | 6925 | .mm, |
| 6926 | 6926 | .hmm, |
| 6927 | 6927 | => { |
| 6928 | | if (is_clang) try argv.append("-fno-spell-checking"); |
| 6928 | if (is_clang) { |
| 6929 | try argv.append("-fno-spell-checking"); |
| 6929 | 6930 | |
| 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 | } |
| 6934 | 6936 | } |
| 6935 | 6937 | |
| 6936 | 6938 | if (mod.optimize_mode != .Debug) { |