aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation/Config.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-01-25 13:17:25 -0800
committerGitHub <noreply@github.com>2025-01-25 13:17:25 -0800
commit8fa47bb904c888dadf20af5eb72b9643eed2bfea (patch)
tree47fcc20146a7358b4216668d91c78d3bb712511d /src/Compilation/Config.zig
parent015a5e198246f782415586235e0da7085867eb22 (diff)
parentb60e39fe8f50783509e3cfe7a3888e1611b063c1 (diff)
downloadzig-8fa47bb904c888dadf20af5eb72b9643eed2bfea.tar.gz
zig-8fa47bb904c888dadf20af5eb72b9643eed2bfea.zip
Merge pull request #22230 from alexrp/lto-stuff
Disable LTO by default + some LTO fixes
Diffstat (limited to 'src/Compilation/Config.zig')
-rw-r--r--src/Compilation/Config.zig21
1 files changed, 1 insertions, 20 deletions
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: {