Browse Source

[Windows] Fix release export template build for ARM64 Windows.

bruvzg 1 year ago
parent
commit
0e519118d2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      platform/windows/detect.py

+ 2 - 1
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