core: fix windows release build issues by disabling LTO (#778)

This commit is contained in:
xdBronch 2023-05-20 19:34:15 +00:00 committed by GitHub
parent 4e66ab8896
commit e9e4a358fb
Failed to generate hash of commit

View file

@ -151,6 +151,8 @@ pub fn Sdk(comptime deps: anytype) type {
.target = options.target,
.optimize = options.optimize,
});
// TODO(core): figure out why we need to disable LTO: https://github.com/hexops/mach/issues/597
exe.want_lto = false;
exe.addModule("glfw", deps.glfw.module(b));
if (target.os.tag == .linux) {