Skip to content

Commit

Permalink
Merge pull request #91360 from bruvzg/arm_win_build
Browse files Browse the repository at this point in the history
Fix arm64/Windows build.
  • Loading branch information
akien-mga committed Apr 30, 2024
2 parents ec73f56 + 986d297 commit d282e4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/png/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if env["builtin_libpng"]:

if env["arch"].startswith("arm"):
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:
env_neon = env_thirdparty.Clone()
if "S_compiler" in env:
Expand Down
5 changes: 3 additions & 2 deletions modules/raycast/config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
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"]:
return True
# x86_32 only seems supported on Windows for now.
if env["arch"] == "x86_32" and platform == "windows":
return True
return False
Expand Down

0 comments on commit d282e4f

Please sign in to comment.