File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -209,10 +209,13 @@ foreach(sdk ${SWIFT_SDKS})
209
209
if (${SWIFT_SDK_${sdk}_OBJECT_FORMAT} STREQUAL ELF )
210
210
string (TOLOWER "${sdk} " lowercase_sdk )
211
211
set (libpthread -lpthread )
212
+ set (concurrency_libs )
212
213
set (android_libraries )
213
214
if (${sdk} STREQUAL ANDROID )
214
215
set (android_libraries -llog )
215
216
set (libpthread )
217
+ elseif (SWIFT_CONCURRENCY_USES_DISPATCH )
218
+ set (concurrency_libs "-ldispatch -lBlocksRuntime" )
216
219
endif ()
217
220
218
221
set (linkfile ${lowercase_sdk} /static-stdlib-args.lnk )
@@ -221,6 +224,7 @@ foreach(sdk ${SWIFT_SDKS})
221
224
${libpthread}
222
225
${android_libraries}
223
226
-lswiftCore
227
+ ${concurrency_libs}
224
228
-lstdc++
225
229
-lm
226
230
-Xlinker -export-dynamic
Original file line number Diff line number Diff line change 6
6
-undefined=pthread_once
7
7
-Xlinker
8
8
-undefined=pthread_key_create
9
+ -ldispatch
10
+ -lBlocksRuntime
9
11
-lpthread
10
12
-licui18nswift
11
13
-licuucswift
You can’t perform that action at this time.
0 commit comments