zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 94be75a94fe643d8424c0225c63a2a60f12a97a0 (tree)
parent b5f9e070345f44af690cbcfeb9abd9ce1b3d979d
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Mon, 18 Nov 2024 19:22:35 +0100

Compilation: Re-enable LTO for RISC-V.

Diffstat:
Msrc/Compilation/Config.zig | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig @@ -306,14 +306,6 @@ pub fn resolve(options: Options) ResolveError!Config { else => {}, } - if (target.cpu.arch.isRISCV()) { - // Clang and LLVM currently don't support RISC-V target-abi for LTO. - // Compiling with LTO may fail or produce undesired results. - // See https://reviews.llvm.org/D71387 - // See https://reviews.llvm.org/D102582 - break :b false; - } - break :b switch (options.output_mode) { .Lib, .Obj => false, .Exe => switch (root_optimize_mode) {