We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a8e72 commit 4827ed7Copy full SHA for 4827ed7
cmake/modules/AddSwift.cmake
@@ -1261,6 +1261,8 @@ function(_add_swift_library_single target name)
1261
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib/swift/${SWIFTLIB_SINGLE_SUBDIR}"
1262
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib/swift/${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_LIB_SUBDIR}")
1263
1264
+ # There are scenarios in which this function is called with SDKROOT set
1265
+ # In those we need to ensure we link against the dylibs present in the SDK
1266
if(DEFINED ENV{SDKROOT})
1267
list(APPEND library_search_directories "$ENV{SDKROOT}/usr/lib/swift")
1268
endif()
0 commit comments