File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
tools/SourceKit/cmake/modules Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -466,8 +466,10 @@ function(_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping)
466
466
# This requires to explicitly add all the needed compatibility libraries. We
467
467
# can take them from the current build.
468
468
set(vsuffix " -${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}-${SWIFT_HOST_VARIANT_ARCH} ")
469
- set(conctarget " swiftCompatibilityConcurrency${vsuffix} ")
470
- target_link_libraries(${target} PUBLIC ${conctarget} )
469
+ foreach(compat_library IN ITEMS " Concurrency " " DynamicReplacements " " 50 " " 51 ")
470
+ set(conctarget " swiftCompatibility${compat_library}${vsuffix} ")
471
+ target_link_libraries(${target} PUBLIC ${conctarget} )
472
+ endforeach()
471
473
472
474
# Add the SDK directory for the host platform.
473
475
target_link_directories(${target} PRIVATE " ${sdk_dir} ")
Original file line number Diff line number Diff line change @@ -52,8 +52,10 @@ function(add_sourcekitd_swifrt_linking target path HAS_SWIFT_MODULES)
52
52
# This requires to explicitly add all the needed compatibility libraries. We
53
53
# can take them from the current build.
54
54
set (vsuffix "-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _LIB_SUBDIR}-${SWIFT_HOST_VARIANT_ARCH} " )
55
- set (conctarget "swiftCompatibilityConcurrency${vsuffix} " )
56
- target_link_libraries (${target} PUBLIC ${conctarget} )
55
+ foreach (compat_library IN ITEMS "Concurrency" "DynamicReplacements" "50" "51" )
56
+ set (conctarget "swiftCompatibility${compat_library}${vsuffix} " )
57
+ target_link_libraries (${target} PUBLIC ${conctarget} )
58
+ endforeach ()
57
59
58
60
# Add the SDK directory for the host platform.
59
61
target_link_directories (${target} PRIVATE "${sdk_dir} " )
You can’t perform that action at this time.
0 commit comments