Browse Source

Merge pull request #91360 from bruvzg/arm_win_build

Fix arm64/Windows build.
Rémi Verschelde 1 year ago
parent
commit
d282e4f0e6
2 changed files with 4 additions and 3 deletions
  1. 1 1
      drivers/png/SCsub
  2. 3 2
      modules/raycast/config.py

+ 1 - 1
drivers/png/SCsub

@@ -39,7 +39,7 @@ if env["builtin_libpng"]:
 
 
     if env["arch"].startswith("arm"):
     if env["arch"].startswith("arm"):
         if env.msvc:  # Can't compile assembly files with MSVC.
         if env.msvc:  # Can't compile assembly files with MSVC.
-            env_thirdparty.Append(CPPDEFINES=[("PNG_ARM_NEON_OPT"), 0])
+            env_thirdparty.Append(CPPDEFINES=[("PNG_ARM_NEON_OPT", 0)])
         else:
         else:
             env_neon = env_thirdparty.Clone()
             env_neon = env_thirdparty.Clone()
             if "S_compiler" in env:
             if "S_compiler" in env:

+ 3 - 2
modules/raycast/config.py

@@ -1,8 +1,9 @@
 def can_build(env, platform):
 def can_build(env, platform):
-    # Supported architectures depend on the Embree library.
+    # Supported architectures and platforms depend on the Embree library.
+    if env["arch"] == "arm64" and platform == "windows":
+        return False
     if env["arch"] in ["x86_64", "arm64", "wasm32"]:
     if env["arch"] in ["x86_64", "arm64", "wasm32"]:
         return True
         return True
-    # x86_32 only seems supported on Windows for now.
     if env["arch"] == "x86_32" and platform == "windows":
     if env["arch"] == "x86_32" and platform == "windows":
         return True
         return True
     return False
     return False