1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Improve architecture support logic in Raycast module

This commit is contained in:
Aaron Franke
2022-12-12 21:42:10 -06:00
parent 4828ac6b99
commit cee8f1a786

View File

@@ -1,13 +1,11 @@
def can_build(env, platform):
# Supported architectures depend on the Embree library.
# No ARM32 support planned.
if env["arch"] == "arm32":
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 False
# The rest works, even wasm32!
return True
if env["arch"] == "x86_32" and platform == "windows":
return True
return False
def configure(env):