summaryrefslogtreecommitdiff
path: root/platform/javascript/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-25 13:03:48 +0200
committerGitHub <noreply@github.com>2022-08-25 13:03:48 +0200
commitc7eb423eeb5455419bb96fc1ed8e8e121c2a619a (patch)
treecdf84e433facaefd1ed6689f0619aa1e0bcf3eba /platform/javascript/detect.py
parent8769088f48a9acc7a28a55ceeba86cdcd6ba3a42 (diff)
parent27b0f182758db5d2d4c123c81430c34941161b39 (diff)
Merge pull request #55778 from aaronfranke/use-arch-btw
[skip ci]
Diffstat (limited to 'platform/javascript/detect.py')
-rw-r--r--platform/javascript/detect.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index a769260f01..048c9c2eb4 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -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: