Skip to content

Commit 9ae2514

Browse files
authored
[5.8] Build-script: ensure we can target armv7k with watchOS 9 SDK (swiftlang#63021)
Updating to match `SDKSettings.plist` Addresses rdar://100563701 (cherry picked from commit 9bde007)
1 parent 2405ce4 commit 9ae2514

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)