Skip to content

Commit 8e12275

Browse files
committed
[Tests] Add swift_Concurrency to the LTO workaround.
Kuba reckons this will fix the test hanging. rdar://84393438
1 parent e08fd33 commit 8e12275

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/lit.cfg

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,15 +977,17 @@ if run_vendor == 'apple':
977977

978978
# Auto-linking does not work when stdlib is built with LTO, because linked
979979
# libraries are discovered too late (after optimizations are applied), and
980-
# ld64 hits an assert and crashes. Until ld64 fixes this, let's workaround
981-
# it by explicitly -l linking all libraries needed in tests.
980+
# ld64 hits an assert and crashes, or worse, deadlocks. Until ld64 fixes
981+
# this, let's workaround it by explicitly -l linking all libraries needed in
982+
# tests.
983+
# rdar://70787171
982984
if "stdlib_lto" in config.available_features:
983985
for library in ["swiftCore", "swiftStdlibUnittest",
984986
"swiftStdlibUnicodeUnittest",
985987
"swiftStdlibCollectionUnittest",
986988
"swiftSwiftPrivateLibcExtras", "swiftSwiftPrivate",
987989
"swiftDarwin", "swiftSwiftPrivateThreadExtras",
988-
"swiftSwiftOnoneSupport"]:
990+
"swiftSwiftOnoneSupport", "swift_Concurrency"]:
989991
swift_execution_tests_extra_flags += ' -Xlinker -l%s'% library
990992

991993
swift_native_clang_tools_path = lit_config.params.get('swift_native_clang_tools_path', None)

0 commit comments

Comments
 (0)