about summary refs log tree commit diff
path: root/pkgs/development/compilers/swift/compiler/patches/swift-darwin-plistbuddy-workaround.patch
blob: a3cf4f60675cbb13965826fe9dbdb043bdbb5238 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CMake tries to read a list field from SDKSettings.plist, but the output of
facebook/xcbuild PlistBuddy is incompatible with Apple's.

Simply set the supported architectures to the one target architecture we're
building for.

--- a/cmake/modules/SwiftConfigureSDK.cmake
+++ b/cmake/modules/SwiftConfigureSDK.cmake
@@ -189,7 +189,7 @@ macro(configure_sdk_darwin
   endif()
 
   # Remove any architectures not supported by the SDK.
-  remove_sdk_unsupported_archs(${name} ${xcrun_name} ${SWIFT_SDK_${prefix}_PATH} SWIFT_SDK_${prefix}_ARCHITECTURES)
+  set(SWIFT_SDK_${prefix}_ARCHITECTURES "@swiftArch@")
 
   list_intersect(
     "${SWIFT_DARWIN_MODULE_ARCHS}"            # lhs