zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ccffc7f108dd9a18698f2c65523e4ab3bae1cd23 (tree)
parent 5bb9963bbbfeed105542f52d022a80a7dd5e13a0
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Wed, 26 Mar 2025 22:46:27 +0100

build.zig: Don't disable LTO when targeting MinGW.

We stopped building mingw32.lib with LTO recently, so this is no longer needed.

Diffstat:
Mbuild.zig | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/build.zig b/build.zig @@ -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;