godot/modules/raycast/config.py
Rémi Verschelde b2373298a2
embree: Enable raycast module build for Web and Windows x86_32
Embree initially only supported x86_64, then got arm64 support added.
Now it seems to be possible to build it with Emscripten (wasm32) and
on x86_32 Windows.
2022-11-25 14:48:29 +01:00

15 lines
389 B
Python

def can_build(env, platform):
# Supported architectures depend on the Embree library.
# No ARM32 support planned.
if env["arch"] == "arm32":
return False
# 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
def configure(env):
pass