Skip to content

Commit 881e16c

Browse files
authored
Build-script: ensure we can target armv7k with watchOS 9 SDK (#63020)
Updating to match `SDKSettings.plist` Addresses rdar://100563701
1 parent 0812484 commit 881e16c

File tree

1 file changed

+3
-0
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+3
-0
lines changed

utils/swift_build_support/swift_build_support/targets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ def sdk_supports_architecture(self, arch, toolchain):
122122
# The names match up with the xcrun SDK names.
123123
xcrun_sdk_name = self.name
124124

125+
if (xcrun_sdk_name == 'watchos' and arch == 'armv7k'):
126+
return True
127+
125128
sdk_path = xcrun.sdk_path(sdk=xcrun_sdk_name, toolchain=toolchain)
126129
if not sdk_path:
127130
raise RuntimeError('Cannot find SDK path for %s' % xcrun_sdk_name)

0 commit comments

Comments
 (0)