| ... | ... | @@ -306,14 +306,6 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 306 | 306 | else => {}, |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | | if (target.cpu.arch.isRISCV()) { |
| 310 | | // Clang and LLVM currently don't support RISC-V target-abi for LTO. |
| 311 | | // Compiling with LTO may fail or produce undesired results. |
| 312 | | // See https://reviews.llvm.org/D71387 |
| 313 | | // See https://reviews.llvm.org/D102582 |
| 314 | | break :b false; |
| 315 | | } |
| 316 | | |
| 317 | 309 | break :b switch (options.output_mode) { |
| 318 | 310 | .Lib, .Obj => false, |
| 319 | 311 | .Exe => switch (root_optimize_mode) { |