mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
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:
parent
8916949b50
commit
27b0f18275
28 changed files with 271 additions and 218 deletions
|
|
@ -46,6 +46,7 @@ def get_opts():
|
|||
|
||||
def get_flags():
|
||||
return [
|
||||
("arch", "wasm32"),
|
||||
("tools", False),
|
||||
("builtin_pcre2_with_jit", False),
|
||||
("vulkan", False),
|
||||
|
|
@ -53,6 +54,15 @@ def get_flags():
|
|||
|
||||
|
||||
def configure(env):
|
||||
# Validate arch.
|
||||
supported_arches = ["wasm32"]
|
||||
if env["arch"] not in supported_arches:
|
||||
print(
|
||||
'Unsupported CPU architecture "%s" for iOS. Supported architectures are: %s.'
|
||||
% (env["arch"], ", ".join(supported_arches))
|
||||
)
|
||||
sys.exit()
|
||||
|
||||
try:
|
||||
env["initial_memory"] = int(env["initial_memory"])
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue