Skip to content

Commit 04b8b37

Browse files
committed
Prune Redundant libdeps in CMake's target_link_libraries and LLVMBuild.txt.
I checked this with Release+Asserts on x86_64-mingw32. Please restore partially if this were overkill. llvm-svn: 213064
1 parent be324f9 commit 04b8b37

File tree

10 files changed

+4
-11
lines changed

10 files changed

+4
-11
lines changed

clang-tools-extra/clang-query/tool/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ target_link_libraries(clang-query
66
clangASTMatchers
77
clangBasic
88
clangDynamicASTMatchers
9-
clangFrontend
109
clangQuery
1110
clangTooling
1211
)

clang-tools-extra/module-map-checker/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ add_clang_executable(module-map-checker
99
target_link_libraries(module-map-checker
1010
clangAST
1111
clangBasic
12-
clangDriver
1312
clangFrontend
1413
clangLex
15-
clangRewriteFrontend
1614
clangTooling
1715
)

clang/examples/clang-interpreter/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
22
Core
33
ExecutionEngine
4-
Interpreter
54
JIT
65
Support
76
native

clang/lib/Analysis/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
set(LLVM_LINK_COMPONENTS
2-
MC
32
Support
43
)
54

clang/tools/driver/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ set( LLVM_LINK_COMPONENTS
1111
MCParser
1212
ObjCARCOpts
1313
Option
14-
ProfileData
1514
ScalarOpts
1615
Support
1716
TransformUtils

llvm/lib/LTO/LLVMBuild.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
type = Library
2020
name = LTO
2121
parent = Libraries
22-
required_libraries = BitReader BitWriter Core IPA IPO InstCombine Linker MC MCParser ObjCARC Object Scalar Support Target TransformUtils
22+
required_libraries = BitReader BitWriter Core IPA IPO InstCombine Linker MC ObjCARC Object Scalar Support Target TransformUtils

llvm/lib/Target/Hexagon/LLVMBuild.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ has_asmprinter = 1
2828
type = Library
2929
name = HexagonCodeGen
3030
parent = Hexagon
31-
required_libraries = Analysis AsmPrinter CodeGen Core HexagonAsmPrinter HexagonDesc HexagonInfo MC Scalar SelectionDAG Support Target TransformUtils
31+
required_libraries = Analysis AsmPrinter CodeGen Core HexagonAsmPrinter HexagonDesc HexagonInfo MC SelectionDAG Support Target
3232
add_to_library_groups = Hexagon

llvm/lib/Target/PowerPC/Disassembler/LLVMBuild.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
type = Library
2020
name = PowerPCDisassembler
2121
parent = PowerPC
22-
required_libraries = MC PowerPCDesc PowerPCInfo Support
22+
required_libraries = MC PowerPCInfo Support
2323
add_to_library_groups = PowerPC

llvm/lib/Target/R600/LLVMBuild.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ has_asmprinter = 1
2828
type = Library
2929
name = R600CodeGen
3030
parent = R600
31-
required_libraries = Analysis AsmPrinter CodeGen Core MC R600AsmPrinter R600Desc R600Info Scalar SelectionDAG Support Target TransformUtils
31+
required_libraries = Analysis AsmPrinter CodeGen Core MC R600AsmPrinter R600Desc R600Info Scalar SelectionDAG Support Target
3232
add_to_library_groups = R600

llvm/tools/llvm-lto/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
set(LLVM_LINK_COMPONENTS
22
${LLVM_TARGETS_TO_BUILD}
3-
Core
43
LTO
54
MC
65
Support

0 commit comments

Comments
 (0)