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:
Alex Rønne Petersen 2025-03-26 22:46:27 +01:00
parent 5bb9963bbb
commit ccffc7f108
No known key found for this signature in database

View File

@ -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;