mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
Compilation: Disable LTO for mips n32.
See: https://github.com/llvm/llvm-project/pull/116537
This commit is contained in:
parent
7266d4497e
commit
3a6a8b8aa5
@ -294,6 +294,12 @@ pub fn resolve(options: Options) ResolveError!Config {
|
||||
if (options.lto) |x| break :b x;
|
||||
if (!options.any_c_source_files) break :b false;
|
||||
|
||||
// https://github.com/llvm/llvm-project/pull/116537
|
||||
if (target.cpu.arch.isMIPS64()) switch (target.abi) {
|
||||
.gnuabin32, .muslabin32 => break :b false,
|
||||
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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user