From e9e4a358fb21d743c1a8c9b440894df3a2adec32 Mon Sep 17 00:00:00 2001 From: xdBronch <51252236+xdBronch@users.noreply.github.com> Date: Sat, 20 May 2023 19:34:15 +0000 Subject: [PATCH] core: fix windows release build issues by disabling LTO (#778) --- libs/core/sdk.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/core/sdk.zig b/libs/core/sdk.zig index 5b43f7e9..e3a02859 100644 --- a/libs/core/sdk.zig +++ b/libs/core/sdk.zig @@ -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) {