summaryrefslogtreecommitdiff
path: root/tools/llc/Makefile
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-04-23 17:24:33 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-04-23 17:24:33 +0000
commit2c6584a72f329dd41f13c495de847a11e32357bf (patch)
tree8f9e8e61f635f3ad50c9b26d5b59e39cab17de7f /tools/llc/Makefile
parentd9d6e10dd99c1d84471bc2f0684f1ab778f54b1d (diff)
downloadllvm-2c6584a72f329dd41f13c495de847a11e32357bf.tar.gz
llvm-2c6584a72f329dd41f13c495de847a11e32357bf.tar.bz2
llvm-2c6584a72f329dd41f13c495de847a11e32357bf.tar.xz
Make the CBackend actually get included in llc by using USEDLIBS instead of
USEDLIB as the variable to which "CBackend" is appended. The surrounding if clause is safe because currently the configure script ensures that the CBackend target is always added to TARGETS_TO_BUILD. By using a non-hard coded construct in the makefile, we gain uniformity and the ability to change the default set of targets by only changing the configure script. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc/Makefile')
-rw-r--r--tools/llc/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/llc/Makefile b/tools/llc/Makefile
index de56b856cc..1e50367006 100644
--- a/tools/llc/Makefile
+++ b/tools/llc/Makefile
@@ -18,8 +18,10 @@ include $(LEVEL)/Makefile.config
# Initialize the USEDLIBS so we can add to it
USEDLIBS :=
-# Always add the C Backend
-USEDLIB += LLVMCBackend
+# Check for LLVMCBackend target
+ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
+USEDLIBS += LLVMCBackend
+endif
# Check for Skeleton target
ifneq ($(strip $(filter Skeleton,$(TARGETS_TO_BUILD))),)