| ... | @@ -993,6 +993,12 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -993,6 +993,12 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 993 | } else if (options.target.os.tag == .windows and link_libcpp) { | 993 | } else if (options.target.os.tag == .windows and link_libcpp) { |
| 994 | // https://github.com/ziglang/zig/issues/8531 | 994 | // https://github.com/ziglang/zig/issues/8531 |
| 995 | break :blk false; | 995 | break :blk false; |
| | 996 | } else if (options.target.cpu.arch.isRISCV()) { |
| | 997 | // Clang and LLVM currently don't support RISC-V target-abi for LTO. |
| | 998 | // Compiling with LTO may fail or produce undesired results. |
| | 999 | // See https://reviews.llvm.org/D71387 |
| | 1000 | // See https://reviews.llvm.org/D102582 |
| | 1001 | break :blk false; |
| 996 | } else switch (options.output_mode) { | 1002 | } else switch (options.output_mode) { |
| 997 | .Lib, .Obj => break :blk false, | 1003 | .Lib, .Obj => break :blk false, |
| 998 | .Exe => switch (options.optimize_mode) { | 1004 | .Exe => switch (options.optimize_mode) { |