Skip to content

Commit 2d50ed9

Browse files
compnerdgottesmm
authored andcommitted
[upstream-update] Link LLVMDebugInfoCodeView into 6 executable tools. (#4489)
All of these cases seem to need the symbols from LLVM's new CodeView library to link. The specific executables are: 1. Swift Driver. 2. SIL Extract. 3. SIL Opt. 4. Swift IDE Test. 5. Swift LLVM Opt. 6. LLDB Module Import Test
1 parent 5ffb151 commit 2d50ed9

File tree

6 files changed

+14
-1
lines changed

6 files changed

+14
-1
lines changed

tools/driver/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ add_swift_executable(swift
77
LINK_LIBRARIES
88
swiftDriver
99
swiftFrontendTool
10+
LLVM_COMPONENT_DEPENDS
11+
DebugInfoCodeView
1012
)
1113

1214
target_link_libraries(swift edit)

tools/lldb-moduleimport-test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ add_swift_executable(lldb-moduleimport-test
22
lldb-moduleimport-test.cpp
33
LINK_LIBRARIES
44
swiftASTSectionImporter swiftFrontend swiftClangImporter
5-
)
5+
LLVM_COMPONENT_DEPENDS
6+
DebugInfoCodeView
7+
)
68

79
swift_install_in_component(testsuite-tools
810
TARGETS lldb-moduleimport-test

tools/sil-extract/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ add_swift_executable(sil-extract
66
swiftSILOptimizer
77
swiftSerialization
88
swiftClangImporter
9+
LLVM_COMPONENT_DEPENDS
10+
DebugInfoCodeView
911
)
1012

1113
swift_install_in_component(tools

tools/sil-opt/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ add_swift_executable(sil-opt
55
swiftIRGen
66
swiftSILGen
77
swiftSILOptimizer
8+
LLVM_COMPONENT_DEPENDS
9+
DebugInfoCodeView
810
)
911

1012
swift_install_in_component(tools

tools/swift-ide-test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ add_swift_executable(swift-ide-test
66
swiftDriver
77
swiftFrontend
88
swiftIDE
9+
LLVM_COMPONENT_DEPENDS
10+
DebugInfoCodeView
911
)
1012

1113
# If libxml2 is available, make it available for swift-ide-test.

tools/swift-llvm-opt/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ add_swift_executable(swift-llvm-opt
1010
# Clang libraries included to appease the linker on linux.
1111
clangBasic
1212
clangCodeGen
13+
14+
LLVM_COMPONENT_DEPENDS
15+
DebugInfoCodeView
1316
)
1417

1518
swift_install_in_component(tools

0 commit comments

Comments
 (0)