Unify bits, arch, and android_arch into env["arch"]
Fully removes the `bits` option and adapts the code that relied on it. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
committed by
Rémi Verschelde
parent
8916949b50
commit
27b0f18275
@ -1,18 +1,6 @@
|
||||
def can_build(env, platform):
|
||||
# Depends on Embree library, which only supports x86_64 and aarch64.
|
||||
if env["arch"].startswith("rv") or env["arch"].startswith("ppc"):
|
||||
return False
|
||||
|
||||
if platform == "android":
|
||||
return env["android_arch"] in ["arm64v8", "x86_64"]
|
||||
|
||||
if platform == "javascript":
|
||||
return False # No SIMD support yet
|
||||
|
||||
if env["bits"] == "32":
|
||||
return False
|
||||
|
||||
return True
|
||||
# Depends on Embree library, which only supports x86_64 and arm64.
|
||||
return env["arch"] in ["x86_64", "arm64"]
|
||||
|
||||
|
||||
def configure(env):
|
||||
|
||||
Reference in New Issue
Block a user