Skip to content

Commit f29439b

Browse files
committed
Simplify logic to appease linter.
1 parent 6b9b033 commit f29439b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cibuildwheel/architecture.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,9 @@ def auto_archs(platform: PlatformName) -> "set[Architecture]":
151151
elif platform == "windows" and Architecture.AMD64 in result:
152152
result.add(Architecture.x86)
153153

154-
elif platform == "ios":
155-
# iOS defaults to building all targets with the same CPU architecture
156-
# as the native simulator architecture
157-
# build actual iOS wheels on arm64
158-
if native_arch == Architecture.arm64_iphonesimulator:
159-
result.add(Architecture.arm64_iphoneos)
154+
elif platform == "ios" and native_arch == Architecture.arm64_iphonesimulator:
155+
# Also build the device wheel if we're on ARM64.
156+
result.add(Architecture.arm64_iphoneos)
160157

161158
return result
162159

0 commit comments

Comments
 (0)