| ... | ... | @@ -4073,7 +4073,10 @@ pub fn addCCArgs( |
| 4073 | 4073 | .Debug => { |
| 4074 | 4074 | // windows c runtime requires -D_DEBUG if using debug libraries |
| 4075 | 4075 | try argv.append("-D_DEBUG"); |
| 4076 | | try argv.append("-Og"); |
| 4076 | // Clang has -Og for compatibility with GCC, but currently it is just equivalent |
| 4077 | // to -O1. Besides potentially impairing debugging, -O1/-Og significantly |
| 4078 | // increases compile times. |
| 4079 | try argv.append("-O0"); |
| 4077 | 4080 | |
| 4078 | 4081 | if (comp.bin_file.options.link_libc and target.os.tag != .wasi) { |
| 4079 | 4082 | try argv.append("-fstack-protector-strong"); |