diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-26 22:46:27 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-26 22:46:27 +0100 |
| commit | ccffc7f108dd9a18698f2c65523e4ab3bae1cd23 (patch) | |
| tree | 9ffff908261a38a716e4f667e77f32bcb5333082 | |
| parent | 5bb9963bbbfeed105542f52d022a80a7dd5e13a0 (diff) | |
| download | zig-ccffc7f108dd9a18698f2c65523e4ab3bae1cd23.tar.gz zig-ccffc7f108dd9a18698f2c65523e4ab3bae1cd23.zip | |
build.zig: Don't disable LTO when targeting MinGW.
We stopped building mingw32.lib with LTO recently, so this is no longer needed.
| -rw-r--r-- | build.zig | 5 |
1 files changed, 0 insertions, 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; |
