Skip to content

Commit c9aaf50

Browse files
authored
Merge pull request #72481 from gottesmm/pr-fd38c5a5bd8332749e4d5170b0844748220d9965
[cmake] Prevent linker errors by linking libswiftAST into SwiftBasicTests since libswiftBasic can include contents from libswiftAST.
2 parents 8e72a01 + aac3cd7 commit c9aaf50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unittests/Basic/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ add_dependencies(SwiftBasicTests "${gyb_dependency_targets}")
4848
target_link_libraries(SwiftBasicTests
4949
PRIVATE
5050
swiftBasic
51+
# SwiftBasic can include symbols from swiftAST due to swiftBasic including
52+
# headers from AST. Just include SwiftAST so that we do not have linker
53+
# failures.
54+
swiftAST
5155
swiftThreading
5256
clangBasic
5357
LLVMTestingSupport

0 commit comments

Comments
 (0)