diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-25 13:03:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-25 13:03:48 +0200 |
| commit | c7eb423eeb5455419bb96fc1ed8e8e121c2a619a (patch) | |
| tree | cdf84e433facaefd1ed6689f0619aa1e0bcf3eba /platform/ios/detect.py | |
| parent | 8769088f48a9acc7a28a55ceeba86cdcd6ba3a42 (diff) | |
| parent | 27b0f182758db5d2d4c123c81430c34941161b39 (diff) | |
| download | redot-engine-c7eb423eeb5455419bb96fc1ed8e8e121c2a619a.tar.gz | |
Merge pull request #55778 from aaronfranke/use-arch-btw
[skip ci]
Diffstat (limited to 'platform/ios/detect.py')
| -rw-r--r-- | platform/ios/detect.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/platform/ios/detect.py b/platform/ios/detect.py index 67c90b10a0..1a8d24d12d 100644 --- a/platform/ios/detect.py +++ b/platform/ios/detect.py @@ -36,12 +36,22 @@ def get_opts(): def get_flags(): return [ + ("arch", "arm64"), # Default for convenience. ("tools", False), ("use_volk", False), ] def configure(env): + # Validate arch. + supported_arches = ["x86_64", "arm64"] + 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() + ## Build type if env["target"].startswith("release"): @@ -64,11 +74,6 @@ def configure(env): env.Append(CCFLAGS=["-flto"]) env.Append(LINKFLAGS=["-flto"]) - ## Architecture - env["bits"] = "64" - if env["arch"] != "x86_64": - env["arch"] = "arm64" - ## Compiler configuration # Save this in environment for use by other modules |
