1CMake tries to read a list field from SDKSettings.plist, but the output of
2facebook/xcbuild PlistBuddy is incompatible with Apple's.
3
4Simply set the supported architectures to the one target architecture we're
5building for.
6
7--- a/cmake/modules/SwiftConfigureSDK.cmake
8+++ b/cmake/modules/SwiftConfigureSDK.cmake
9@@ -189,7 +189,7 @@ macro(configure_sdk_darwin
10 endif()
11
12 # Remove any architectures not supported by the SDK.
13- remove_sdk_unsupported_archs(${name} ${xcrun_name} ${SWIFT_SDK_${prefix}_PATH} SWIFT_SDK_${prefix}_ARCHITECTURES)
14+ set(SWIFT_SDK_${prefix}_ARCHITECTURES "@swiftArch@")
15
16 list_intersect(
17 "${SWIFT_DARWIN_MODULE_ARCHS}" # lhs