Skip to content

Commit 93967c0

Browse files
committed
Restore ios and macos from godot-cpp.
1 parent 051ab7f commit 93967c0

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

tools/build/platform/ios.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ def exists(env):
3030

3131

3232
def generate(env):
33-
if env["arch"] == "universal":
34-
print("Universal is currently not supported on iOS. Exiting.")
35-
if env["arch"] not in ("arm64", "x86_64"):
36-
print("Only arm64, and x86_64 are supported on iOS. Exiting.")
37-
env.Exit(1)
33+
if env["arch"] not in ("universal", "arm64", "x86_64"):
34+
raise ValueError("Only universal, arm64, and x86_64 are supported on iOS. Exiting.")
3835

3936
if env["ios_simulator"]:
4037
sdk_name = "iphonesimulator"

tools/build/platform/macos.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ def exists(env):
2020

2121

2222
def generate(env):
23-
if env["arch"] == "universal":
24-
print("Universal is currently not supported on macOS. Exiting.")
25-
if env["arch"] not in ("arm64", "x86_64"):
26-
print("Only arm64, and x86_64 are supported on macOS. Exiting.")
23+
if env["arch"] not in ("universal", "arm64", "x86_64"):
24+
print("Only universal, arm64, and x86_64 are supported on macOS. Exiting.")
2725
env.Exit(1)
2826

2927
if sys.platform == "darwin":

0 commit comments

Comments
 (0)