authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-18 19:22:35+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-19 12:04:42+01:00
log94be75a94fe643d8424c0225c63a2a60f12a97a0
treefcd32e99f545984db7a7cadf3123a4bfbab62995
parentb5f9e070345f44af690cbcfeb9abd9ce1b3d979d

Compilation: Re-enable LTO for RISC-V.


1 files changed, 0 insertions(+), 8 deletions(-)

src/Compilation/Config.zig-8
......@@ -306,14 +306,6 @@ pub fn resolve(options: Options) ResolveError!Config {
306306 else => {},
307307 }
308308
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
317309 break :b switch (options.output_mode) {
318310 .Lib, .Obj => false,
319311 .Exe => switch (root_optimize_mode) {