Skip to content

Commit 0016c62

Browse files
committed
Compilation: Disable LTO for all ILP32-on-LP64 ABIs.
Extension of 3a6a8b8 to all similar ABIs. The LLD issue affects them all.
1 parent 3a6a8b8 commit 0016c62

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Compilation/Config.zig

+9-3
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,16 @@ pub fn resolve(options: Options) ResolveError!Config {
295295
if (!options.any_c_source_files) break :b false;
296296

297297
// https://github.com/llvm/llvm-project/pull/116537
298-
if (target.cpu.arch.isMIPS64()) switch (target.abi) {
299-
.gnuabin32, .muslabin32 => break :b false,
298+
switch (target.abi) {
299+
.gnuabin32,
300+
.gnuilp32,
301+
.gnux32,
302+
.ilp32,
303+
.muslabin32,
304+
.muslx32,
305+
=> break :b false,
300306
else => {},
301-
};
307+
}
302308

303309
if (target.cpu.arch.isRISCV()) {
304310
// Clang and LLVM currently don't support RISC-V target-abi for LTO.

0 commit comments

Comments
 (0)