From b60e39fe8f50783509e3cfe7a3888e1611b063c1 Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Sat, 14 Dec 2024 06:07:01 +0100 Subject: Compilation: Disable LTO by default. LLD has too many LTO bugs, and we're dropping the LLD dependency soon anyway. --- src/Compilation/Config.zig | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/Compilation/Config.zig') diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig index 41a8077203..ee175cce11 100644 --- a/src/Compilation/Config.zig +++ b/src/Compilation/Config.zig @@ -295,27 +295,8 @@ pub fn resolve(options: Options) ResolveError!Config { } if (options.lto) |x| break :b x; - if (!options.any_c_source_files) break :b .none; - - // https://github.com/llvm/llvm-project/pull/116537 - switch (target.abi) { - .gnuabin32, - .gnuilp32, - .gnux32, - .ilp32, - .muslabin32, - .muslx32, - => break :b .none, - else => {}, - } - break :b switch (options.output_mode) { - .Lib, .Obj => .none, - .Exe => switch (root_optimize_mode) { - .Debug => .none, - .ReleaseSafe, .ReleaseFast, .ReleaseSmall => .full, - }, - }; + break :b .none; }; const link_libcpp = b: { -- cgit v1.2.3