| ... | ... | @@ -294,6 +294,12 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 294 | 294 | if (options.lto) |x| break :b x; |
| 295 | 295 | if (!options.any_c_source_files) break :b false; |
| 296 | 296 | |
| 297 | // https://github.com/llvm/llvm-project/pull/116537 |
| 298 | if (target.cpu.arch.isMIPS64()) switch (target.abi) { |
| 299 | .gnuabin32, .muslabin32 => break :b false, |
| 300 | else => {}, |
| 301 | }; |
| 302 | |
| 297 | 303 | if (target.cpu.arch.isRISCV()) { |
| 298 | 304 | // Clang and LLVM currently don't support RISC-V target-abi for LTO. |
| 299 | 305 | // Compiling with LTO may fail or produce undesired results. |