Skip to content

Commit fde4ec9

Browse files
Workaround for broken implicit import auto static linking
1 parent f811692 commit fde4ec9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/lit.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,13 @@ elif run_os == 'wasi':
14921492
'-target', config.variant_triple,
14931493
'-Xcc', '--sysroot=%s' % config.variant_sdk,
14941494
'-Xclang-linker', '--sysroot=%s' % config.variant_sdk,
1495+
# workaroud: Even though StdlibUnittest uses _Concurrency,
1496+
# _Concurrency module won't be listed in IMPORTED_MODULE.
1497+
# And -parse-stdlib disables implicit imports, so autolink
1498+
# system is broken when static link & -parse-stdlib & importing _Concurrency.
1499+
# This issue causes link failure that reports there are missing swift_task_XX
1500+
# symbols.
1501+
'-lswift_Concurrency',
14951502
'-toolchain-stdlib-rpath', resource_dir_opt,
14961503
mcp_opt, config.swift_test_options,
14971504
config.swift_driver_test_options, swift_execution_tests_extra_flags])

0 commit comments

Comments
 (0)