summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc/driver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvmc/driver/Makefile')
-rw-r--r--llvm/tools/llvmc/driver/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/tools/llvmc/driver/Makefile b/llvm/tools/llvmc/driver/Makefile
index 107f0dea385..0e32726fec2 100644
--- a/llvm/tools/llvmc/driver/Makefile
+++ b/llvm/tools/llvmc/driver/Makefile
@@ -8,12 +8,15 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-TOOLNAME = $(DRIVER_NAME)
-LINK_COMPONENTS = support system
-REQUIRES_EH := 1
-ifneq ($(BUILTIN_PLUGINS),)
-USEDLIBS = $(patsubst %,plugin_llvmc_%,$(BUILTIN_PLUGINS))
+TOOLNAME = $(LLVMC_BASED_DRIVER_NAME)
+USEDLIBS = CompilerDriver
+
+ifneq ($(LLVMC_BUILTIN_PLUGINS),)
+USEDLIBS += $(patsubst %,plugin_llvmc_%,$(LLVMC_BUILTIN_PLUGINS))
endif
+LINK_COMPONENTS = support system
+REQUIRES_EH := 1
+
include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud