authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-14 06:07:01+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-25 14:59:02+01:00
logb60e39fe8f50783509e3cfe7a3888e1611b063c1
tree84aeb49cdf72e8efca9fd7fe9874f6a5f0f46609
parent9f116d38b8fcc71570f6aed6707ed769b22ceea3
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: Disable LTO by default.

LLD has too many LTO bugs, and we're dropping the LLD dependency soon anyway.

1 files changed, 1 insertions(+), 20 deletions(-)

src/Compilation/Config.zig+1-20
......@@ -295,27 +295,8 @@ pub fn resolve(options: Options) ResolveError!Config {
295295 }
296296
297297 if (options.lto) |x| break :b x;
298 if (!options.any_c_source_files) break :b .none;
299
300 // https://github.com/llvm/llvm-project/pull/116537
301 switch (target.abi) {
302 .gnuabin32,
303 .gnuilp32,
304 .gnux32,
305 .ilp32,
306 .muslabin32,
307 .muslx32,
308 => break :b .none,
309 else => {},
310 }
311298
312 break :b switch (options.output_mode) {
313 .Lib, .Obj => .none,
314 .Exe => switch (root_optimize_mode) {
315 .Debug => .none,
316 .ReleaseSafe, .ReleaseFast, .ReleaseSmall => .full,
317 },
318 };
299 break :b .none;
319300 };
320301
321302 const link_libcpp = b: {