Skip to content

Commit a7f00d6

Browse files
committed
[build] Fix undefined reference linker errors on Linux
1 parent 7f6fcf6 commit a7f00d6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/SIL/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ target_link_libraries(swiftSIL PUBLIC
44
swiftDemangling)
55
target_link_libraries(swiftSIL PRIVATE
66
swiftAST
7-
swiftClangImporter)
7+
swiftClangImporter
8+
swiftSema
9+
swiftSerialization)
810

911
add_subdirectory(IR)
1012
add_subdirectory(Utils)

lib/SILGen/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ add_swift_host_library(swiftSILGen STATIC
3636
SILGenThunk.cpp
3737
SILGenType.cpp)
3838
target_link_libraries(swiftSILGen PRIVATE
39+
swiftSerialization
3940
swiftSIL)
4041

4142
set_swift_llvm_is_available(swiftSILGen)

tools/sil-passpipeline-dumper/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ add_swift_host_tool(sil-passpipeline-dumper
55
target_link_libraries(sil-passpipeline-dumper PRIVATE
66
swiftFrontend
77
swiftIRGen
8+
swiftSema
89
swiftSILGen
910
swiftSILOptimizer
1011
# Clang libraries included to appease the linker on linux.

0 commit comments

Comments
 (0)