mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +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
@ -214,11 +214,6 @@ pub fn build(b: *std.Build) !void {
|
|||||||
|
|
||||||
test_step.dependOn(&exe.step);
|
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");
|
const use_llvm = b.option(bool, "use-llvm", "Use the llvm backend");
|
||||||
exe.use_llvm = use_llvm;
|
exe.use_llvm = use_llvm;
|
||||||
exe.use_lld = use_llvm;
|
exe.use_lld = use_llvm;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user