mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
build.zig: Don't disable LTO when targeting MinGW.
We stopped building mingw32.lib with LTO recently, so this is no longer needed.
This commit is contained in:
parent
5bb9963bbb
commit
ccffc7f108
1 changed files with 0 additions and 5 deletions
|
|
@ -214,11 +214,6 @@ pub fn build(b: *std.Build) !void {
|
|||
|
||||
test_step.dependOn(&exe.step);
|
||||
|
||||
if (target.result.os.tag == .windows and target.result.abi == .gnu) {
|
||||
// LTO is currently broken on mingw, this can be removed when it's fixed.
|
||||
exe.want_lto = false;
|
||||
}
|
||||
|
||||
const use_llvm = b.option(bool, "use-llvm", "Use the llvm backend");
|
||||
exe.use_llvm = use_llvm;
|
||||
exe.use_lld = use_llvm;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue