File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ import WinSDK
35
35
import ObjectiveC
36
36
#endif
37
37
38
+ #if SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY
39
+ import _Concurrency
40
+ #endif
41
+
38
42
#if os(WASI)
39
43
let platformSupportSpawnChild = false
40
44
#else
Original file line number Diff line number Diff line change @@ -1581,13 +1581,6 @@ elif run_os == 'wasi':
1581
1581
'-target' , config .variant_triple ,
1582
1582
'-Xcc' , '--sysroot=%s' % config .variant_sdk ,
1583
1583
'-Xclang-linker' , '--sysroot=%s' % config .variant_sdk ,
1584
- # workaroud: Even though StdlibUnittest uses _Concurrency,
1585
- # _Concurrency module won't be listed in IMPORTED_MODULE.
1586
- # And -parse-stdlib disables implicit imports, so autolink
1587
- # system is broken when static link & -parse-stdlib & importing _Concurrency.
1588
- # This issue causes link failure that reports there are missing swift_task_XX
1589
- # symbols.
1590
- '-lswift_Concurrency' ,
1591
1584
'-toolchain-stdlib-rpath' , config .resource_dir_opt ,
1592
1585
mcp_opt , config .swift_test_options ,
1593
1586
config .swift_driver_test_options , swift_execution_tests_extra_flags ])
You can’t perform that action at this time.
0 commit comments