Skip to content

Commit 3a7d87b

Browse files
committed
[CMake] Fix missing linker deps when using BUILD_SHARED_LIBS
1 parent 8c8c978 commit 3a7d87b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/ClangImporter/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ add_swift_host_library(swiftClangImporter STATIC
2121
)
2222
target_link_libraries(swiftClangImporter PRIVATE
2323
swiftAST
24-
swiftParse)
24+
swiftParse
25+
LLVMBitstreamReader)
2526

2627
# This property is only set by calls to clang_tablegen. It will not be set on
2728
# standalone builds, so it can always be safely passed.

tools/driver/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ target_link_libraries(swift
1010
PRIVATE
1111
swiftDriver
1212
swiftFrontendTool
13-
swiftSymbolGraphGen)
13+
swiftSymbolGraphGen
14+
LLVMBitstreamReader)
1415

1516
swift_create_post_build_symlink(swift
1617
SOURCE "swift${CMAKE_EXECUTABLE_SUFFIX}"

unittests/ClangImporter/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ target_link_libraries(SwiftClangImporterTests
77
swiftClangImporter
88
swiftParse
99
swiftAST
10-
LLVMBitstreamReader
1110
)

0 commit comments

Comments
 (0)