From 0e519118d28730f6d5e9d550f8a469afe0033b82 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:31:15 +0300 Subject: [PATCH] [Windows] Fix release export template build for ARM64 Windows. --- platform/windows/detect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 5713ca8a2dd..3b440e3f830 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -639,7 +639,8 @@ def configure_mingw(env: "SConsEnvironment"): # TODO: Re-evaluate the need for this / streamline with common config. if env["target"] == "template_release": - env.Append(CCFLAGS=["-msse2"]) + if env["arch"] != "arm64": + env.Append(CCFLAGS=["-msse2"]) elif env.dev_build: # Allow big objects. It's supposed not to have drawbacks but seems to break # GCC LTO, so enabling for debug builds only (which are not built with LTO