File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,8 @@ def exists(env):
30
30
31
31
32
32
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." )
38
35
39
36
if env ["ios_simulator" ]:
40
37
sdk_name = "iphonesimulator"
Original file line number Diff line number Diff line change @@ -20,10 +20,8 @@ def exists(env):
20
20
21
21
22
22
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." )
27
25
env .Exit (1 )
28
26
29
27
if sys .platform == "darwin" :
You can’t perform that action at this time.
0 commit comments