Disable LTO on Windows.
This commit is contained in:
parent
a36255062f
commit
c1cb4c11be
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,12 @@ const Maker = struct {
|
|||
e.linkLibCpp();
|
||||
e.addConfigHeader(m.config_header);
|
||||
m.builder.installArtifact(e);
|
||||
|
||||
// Currently a bug is preventing correct linking for optimized builds for Windows:
|
||||
// https://github.com/ziglang/zig/issues/15958
|
||||
if (e.target.isWindows()) {
|
||||
e.want_lto = false;
|
||||
}
|
||||
return e;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue