summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))),)