Don't build universal binaries for macOS / iOS when dev_build=yes, to save on dev build time.

pull/1613/head
Lukas Tenbrink 2024-10-04 21:08:17 +02:00
parent 6facde3c29
commit 9b0189c23d
1 changed files with 2 additions and 2 deletions

View File

@ -404,9 +404,9 @@ def generate(env):
# Process CPU architecture argument.
if env["arch"] == "":
# No architecture specified. Default to arm64 if building for Android,
# universal if building for macOS or iOS, wasm32 if building for web,
# universal if building for macOS or iOS (non-dev), wasm32 if building for web,
# otherwise default to the host architecture.
if env["platform"] in ["macos", "ios"]:
if env["platform"] in ["macos", "ios"] and not env["dev_build"]:
env["arch"] = "universal"
elif env["platform"] == "android":
env["arch"] = "arm64"