Make llvmc work again.
[oota-llvm.git] / Makefile.rules
index 9325ca4b5d1b8f75f9c10232143c712598ce0079..c706bed68ae0c6371c6a8e3f9d03143bc58b6959 100644 (file)
@@ -198,6 +198,7 @@ install-bytecode:: install-bytecode-local
 ifdef LLVMC_PLUGIN
 
 LIBRARYNAME := $(patsubst %,plugin_llvmc_%,$(LLVMC_PLUGIN))
+CPP.Flags += -DLLVMC_PLUGIN_NAME=$(LLVMC_PLUGIN)
 REQUIRES_EH := 1
 
 # Build a dynamic library if the user runs `make` directly from the plugin