Don't link with the archive library programs that don't use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2013-06-17 15:29:46 +00:00
parent b6a633ca94
commit 5cd6db9a51
7 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
set(LLVM_LINK_COMPONENTS archive bitreader object) set(LLVM_LINK_COMPONENTS bitreader object)
add_llvm_tool(llvm-nm add_llvm_tool(llvm-nm
llvm-nm.cpp llvm-nm.cpp

View File

@ -19,4 +19,4 @@
type = Tool type = Tool
name = llvm-nm name = llvm-nm
parent = Tools parent = Tools
required_libraries = Archive BitReader Object required_libraries = BitReader Object

View File

@ -9,7 +9,7 @@
LEVEL := ../.. LEVEL := ../..
TOOLNAME := llvm-nm TOOLNAME := llvm-nm
LINK_COMPONENTS := archive bitreader object LINK_COMPONENTS := bitreader object
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS := 1 TOOL_NO_EXPORTS := 1

View File

@ -1,6 +1,5 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD} ${LLVM_TARGETS_TO_BUILD}
archive
bitreader bitreader
object) object)

View File

@ -19,4 +19,4 @@
type = Tool type = Tool
name = llvm-readobj name = llvm-readobj
parent = Tools parent = Tools
required_libraries = all-targets Archive BitReader Object required_libraries = all-targets BitReader Object

View File

@ -9,7 +9,7 @@
LEVEL := ../.. LEVEL := ../..
TOOLNAME := llvm-readobj TOOLNAME := llvm-readobj
LINK_COMPONENTS := archive bitreader object all-targets LINK_COMPONENTS := bitreader object all-targets
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS := 1 TOOL_NO_EXPORTS := 1

View File

@ -1,4 +1,4 @@
set(LLVM_LINK_COMPONENTS archive object) set(LLVM_LINK_COMPONENTS object)
add_llvm_utility(obj2yaml add_llvm_utility(obj2yaml
obj2yaml.cpp coff2yaml.cpp obj2yaml.cpp coff2yaml.cpp