Skip to content

Commit db34787

Browse files
committed
Add an AppleInternal path to framework search paths
watchOS XCTest was temporarily moved to an AppleInternal path, so we need to add it to the framework search path to continue to build the watchOS overlay. rdar://problem/20883853 Swift SVN r28353
1 parent c8351a2 commit db34787

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/modules/AddSwift.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function(_add_variant_c_compile_link_flags
6868
list(APPEND result
6969
"-arch" "${arch}"
7070
"-F" "${SWIFT_SDK_${sdk}_PATH}/../../../Developer/Library/Frameworks"
71+
"-F" "${SWIFT_SDK_${sdk}_PATH}/../../../Developer/AppleInternal/Library/Frameworks"
7172
"-m${SWIFT_SDK_${sdk}_VERSION_MIN_NAME}-version-min=${SWIFT_SDK_${sdk}_DEPLOYMENT_VERSION}")
7273

7374
append_darwin_segalign_link_flags("${arch}" result)
@@ -125,7 +126,8 @@ function(_add_variant_swift_compile_flags
125126

126127
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
127128
list(APPEND result
128-
"-F" "${SWIFT_SDK_${sdk}_PATH}/../../../Developer/Library/Frameworks")
129+
"-F" "${SWIFT_SDK_${sdk}_PATH}/../../../Developer/Library/Frameworks"
130+
"-F" "${SWIFT_SDK_${sdk}_PATH}/../../../Developer/AppleInternal/Library/Frameworks")
129131

130132
append_darwin_segalign_link_flags("${arch}" result)
131133
endif()

0 commit comments

Comments
 (0)