File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ endif()
25
25
set (SWIFT_RUNTIME_CONCURRENCY_C_FLAGS )
26
26
set (SWIFT_RUNTIME_CONCURRENCY_SWIFT_FLAGS )
27
27
28
+ set (swift_concurrency_private_link_libraries swiftThreading )
29
+ if (CMAKE_SYSTEM_NAME STREQUAL Windows )
30
+ list (APPEND swift_concurrency_private_link_libraries Synchronization )
31
+ endif ()
32
+
28
33
if ("${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR} " STREQUAL "dispatch" )
29
34
if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
30
35
include_directories (AFTER
44
49
message (FATAL_ERROR "Invalid value for SWIFT_CONCURRENCY_GLOBAL_EXECUTOR (\" ${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR} \" )." )
45
50
endif ()
46
51
47
-
48
52
if (NOT SWIFT_CONCURRENCY_USES_DISPATCH )
49
53
50
54
endif ()
@@ -127,7 +131,7 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
127
131
SWIFT_MODULE_DEPENDS_HAIKU Glibc
128
132
SWIFT_MODULE_DEPENDS_WINDOWS CRT
129
133
130
- PRIVATE_LINK_LIBRARIES swiftThreading
134
+ PRIVATE_LINK_LIBRARIES ${swift_concurrency_private_link_libraries}
131
135
132
136
LINK_LIBRARIES ${swift_concurrency_link_libraries}
133
137
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ elseif(SWIFT_PRIMARY_VARIANT_SDK STREQUAL LINUX)
260
260
list (APPEND swift_core_private_link_libraries )
261
261
endif ()
262
262
elseif (SWIFT_PRIMARY_VARIANT_SDK STREQUAL WINDOWS )
263
- list (APPEND swift_core_private_link_libraries shell32;DbgHelp )
263
+ list (APPEND swift_core_private_link_libraries shell32;DbgHelp;Synchronization )
264
264
endif ()
265
265
266
266
option (SWIFT_CHECK_ESSENTIAL_STDLIB
You can’t perform that action at this time.
0 commit comments