forked from OSchip/llvm-project
Use LINK_COMPONENTS to specify *components* to link against instead of
using USED_LIBS to specify *libraries* to link against. llvm-svn: 30090
This commit is contained in:
parent
2d4cae9896
commit
28689ff2d0
|
@ -10,13 +10,8 @@ LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = bugpoint
|
TOOLNAME = bugpoint
|
||||||
|
|
||||||
OPTLIBS = LLVMTransforms.a LLVMInstrumentation.a
|
LINK_COMPONENTS := bcreader bcwriter asmparser instrumentation scalaropts ipo \
|
||||||
ANALIBS = LLVMDataStructure LLVMipa.a LLVMTarget.a
|
datastructure transforms linker
|
||||||
|
|
||||||
USEDLIBS = LLVMipo.a LLVMScalarOpts.a $(OPTLIBS) $(ANALIBS) LLVMAnalysis.a \
|
|
||||||
LLVMTransformUtils.a \
|
|
||||||
LLVMAsmParser.a LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
|
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = gccas
|
TOOLNAME = gccas
|
||||||
USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a LLVMipa.a \
|
LINK_COMPONENTS = asmparser bcwriter scalaropts ipo ipa transforms
|
||||||
LLVMScalarOpts.a LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils.a \
|
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -10,10 +10,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = gccld
|
TOOLNAME = gccld
|
||||||
USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
|
LINK_COMPONENTS = bcreader bcwriter ipo scalaropts ipa linker
|
||||||
LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
|
|
||||||
LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
|
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -13,24 +13,10 @@ REQUIRES_EH := 1
|
||||||
|
|
||||||
# Include this here so we can get the configuration of the targets
|
# Include this here so we can get the configuration of the targets
|
||||||
# that have been configured for construction. We have to do this
|
# that have been configured for construction. We have to do this
|
||||||
# early so we can set up USEDLIBS properly before includeing Makefile.rules
|
# early so we can set up LINK_COMPONENTS before including Makefile.rules
|
||||||
include $(LEVEL)/Makefile.config
|
include $(LEVEL)/Makefile.config
|
||||||
|
|
||||||
USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
|
LINK_COMPONENTS := $(TARGETS_TO_BUILD) bcreader
|
||||||
LLVMTarget.a \
|
|
||||||
LLVMCodeGen.a \
|
|
||||||
LLVMSelectionDAG.a \
|
|
||||||
LLVMipa.a \
|
|
||||||
LLVMTransforms.a \
|
|
||||||
LLVMScalarOpts.a \
|
|
||||||
LLVMTransformUtils.a \
|
|
||||||
LLVMAnalysis.a \
|
|
||||||
LLVMBCReader.a \
|
|
||||||
LLVMBCWriter.a \
|
|
||||||
LLVMCore.a \
|
|
||||||
LLVMSupport.a \
|
|
||||||
LLVMbzip2.a \
|
|
||||||
LLVMSystem.a
|
|
||||||
|
|
||||||
include $(LLVM_SRC_ROOT)/Makefile.rules
|
include $(LLVM_SRC_ROOT)/Makefile.rules
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = llvm-ar
|
TOOLNAME = llvm-ar
|
||||||
USEDLIBS = LLVMArchive.a LLVMBCReader.a \
|
LINK_COMPONENTS = archive bcreader
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = llvm-bcanalyzer
|
TOOLNAME = llvm-bcanalyzer
|
||||||
USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
LINK_COMPONENTS := bcreader
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
|
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
TOOLNAME = llvm-db
|
TOOLNAME = llvm-db
|
||||||
USEDLIBS = LLVMDebugger.a LLVMBCReader.a LLVMCore.a LLVMSupport.a \
|
LINK_COMPONENTS := debugger bcreader
|
||||||
LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = llvm-extract
|
TOOLNAME = llvm-extract
|
||||||
USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a \
|
LINK_COMPONENTS := bcreader bcwriter ipo
|
||||||
LLVMTarget.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
|
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -10,10 +10,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = llvm-ld
|
TOOLNAME = llvm-ld
|
||||||
USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
|
LINK_COMPONENTS = ipo scalaropts linker archive bcreader bcwriter
|
||||||
LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
|
|
||||||
LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
|
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = llvm-link
|
TOOLNAME = llvm-link
|
||||||
USEDLIBS = LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
|
LINK_COMPONENTS = linker bcreader bcwriter
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = llvm-nm
|
TOOLNAME = llvm-nm
|
||||||
USEDLIBS = LLVMArchive.a LLVMBCReader.a \
|
LINK_COMPONENTS = archive bcreader
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = llvm-prof
|
TOOLNAME = llvm-prof
|
||||||
USEDLIBS = LLVMAnalysis.a LLVMBCReader.a \
|
LINK_COMPONENTS = bcreader analysis
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
|
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
TOOLNAME = llvm-ranlib
|
TOOLNAME = llvm-ranlib
|
||||||
USEDLIBS = LLVMArchive.a LLVMBCReader.a \
|
LINK_COMPONENTS = archive bcreader
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -8,10 +8,9 @@
|
||||||
##===----------------------------------------------------------------------===##
|
##===----------------------------------------------------------------------===##
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
TOOLNAME = llvm2cpp
|
TOOLNAME = llvm2cpp
|
||||||
USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
LINK_COMPONENTS = bcreader
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
||||||
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
##===----------------------------------------------------------------------===##
|
##===----------------------------------------------------------------------===##
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
TOOLNAME = llvmc
|
TOOLNAME = llvmc
|
||||||
USEDLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a
|
LINK_COMPONENTS = support system
|
||||||
CONFIG_FILES = c cpp ll
|
CONFIG_FILES = c cpp ll
|
||||||
EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
|
EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
|
@ -295,7 +295,6 @@ int main(int argc, char **argv) {
|
||||||
if (KeepTemps) flags |= CompilerDriver::KEEP_TEMPS_FLAG;
|
if (KeepTemps) flags |= CompilerDriver::KEEP_TEMPS_FLAG;
|
||||||
if (ShowStats) flags |= CompilerDriver::SHOW_STATS_FLAG;
|
if (ShowStats) flags |= CompilerDriver::SHOW_STATS_FLAG;
|
||||||
if (TimeActions) flags |= CompilerDriver::TIME_ACTIONS_FLAG;
|
if (TimeActions) flags |= CompilerDriver::TIME_ACTIONS_FLAG;
|
||||||
if (TimePassesIsEnabled) flags |= CompilerDriver::TIME_PASSES_FLAG;
|
|
||||||
if (StripOutput) flags |= CompilerDriver::STRIP_OUTPUT_FLAG;
|
if (StripOutput) flags |= CompilerDriver::STRIP_OUTPUT_FLAG;
|
||||||
CD->setDriverFlags(flags);
|
CD->setDriverFlags(flags);
|
||||||
|
|
||||||
|
|
|
@ -17,14 +17,10 @@ DONT_BUILD_RELINKED = 1
|
||||||
|
|
||||||
# Include this here so we can get the configuration of the targets
|
# Include this here so we can get the configuration of the targets
|
||||||
# that have been configured for construction. We have to do this
|
# that have been configured for construction. We have to do this
|
||||||
# early so we can set up USEDLIBS properly before includeing Makefile.rules
|
# early so we can set up LINK_COMPONENTS before includeing Makefile.rules
|
||||||
include $(LEVEL)/Makefile.config
|
include $(LEVEL)/Makefile.config
|
||||||
|
|
||||||
USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
|
LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts bcreader bcwriter
|
||||||
LLVMSelectionDAG.a LLVMCodeGen.a LLVMipo.a LLVMTransforms.a \
|
|
||||||
LLVMScalarOpts.a LLVMipa.a LLVMTransformUtils.a LLVMAnalysis.a \
|
|
||||||
LLVMTarget.a LLVMBCReader.a LLVMBCWriter.a LLVMSystem.a LLVMLinker.a \
|
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a
|
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ LEVEL = ../..
|
||||||
TOOLNAME = opt
|
TOOLNAME = opt
|
||||||
REQUIRES_EH := 1
|
REQUIRES_EH := 1
|
||||||
|
|
||||||
USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMInstrumentation.a \
|
LINK_COMPONENTS := bcreader bcwriter instrumentation scalaropts ipo \
|
||||||
LLVMScalarOpts.a LLVMipo.a LLVMipa.a LLVMDataStructure \
|
datastructure transforms
|
||||||
LLVMTransforms.a LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a \
|
|
||||||
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
Loading…
Reference in New Issue