| ... | ... | @@ -6053,7 +6053,9 @@ pub fn addCCArgs( |
| 6053 | 6053 | // function was called. |
| 6054 | 6054 | try argv.append("-fno-sanitize=function"); |
| 6055 | 6055 | |
| 6056 | | if (mod.optimize_mode == .ReleaseSafe) { |
| 6056 | // If we want to sanitize C, but the ubsan runtime has been turned off, |
| 6057 | // we'll switch to just trapping. |
| 6058 | if (comp.ubsan_rt_strat == .none or mod.optimize_mode == .ReleaseSafe) { |
| 6057 | 6059 | // It's recommended to use the minimal runtime in production |
| 6058 | 6060 | // environments due to the security implications of the full runtime. |
| 6059 | 6061 | // The minimal runtime doesn't provide much benefit over simply |