summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-07-04 03:55:25 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-07-04 03:55:25 +0000
commit95bac6f77c9a0a63280aa43b376dfa0db5a91f5f (patch)
tree550a842a1315d3044bb0711f30aa37111ccd4d0f /llvm/lib/CompilerDriver
parent29d06ea46c6e2d911adcda62cd48f8cab3287883 (diff)
downloadbcm5719-llvm-95bac6f77c9a0a63280aa43b376dfa0db5a91f5f.tar.gz
bcm5719-llvm-95bac6f77c9a0a63280aa43b376dfa0db5a91f5f.zip
LLVMC can be now compiled w/o dynamic plugin support.
Controlled via the --enable-llvmc-dynamic-plugins option. llvm-svn: 74784
Diffstat (limited to 'llvm/lib/CompilerDriver')
-rw-r--r--llvm/lib/CompilerDriver/BuiltinOptions.cpp3
-rw-r--r--llvm/lib/CompilerDriver/Makefile4
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CompilerDriver/BuiltinOptions.cpp b/llvm/lib/CompilerDriver/BuiltinOptions.cpp
index c8b768219ab..a3364e8a72f 100644
--- a/llvm/lib/CompilerDriver/BuiltinOptions.cpp
+++ b/llvm/lib/CompilerDriver/BuiltinOptions.cpp
@@ -12,7 +12,10 @@
//===----------------------------------------------------------------------===//
#include "llvm/CompilerDriver/BuiltinOptions.h"
+
+#ifdef ENABLE_LLVMC_DYNAMIC_PLUGINS
#include "llvm/Support/PluginLoader.h"
+#endif
namespace cl = llvm::cl;
diff --git a/llvm/lib/CompilerDriver/Makefile b/llvm/lib/CompilerDriver/Makefile
index 6084e885184..a5ecfd5d324 100644
--- a/llvm/lib/CompilerDriver/Makefile
+++ b/llvm/lib/CompilerDriver/Makefile
@@ -25,6 +25,10 @@ REQUIRES_EH := 1
include $(LEVEL)/Makefile.common
+ifeq ($(ENABLE_LLVMC_DYNAMIC_PLUGINS), 1)
+ CPP.Flags += -DENABLE_LLVMC_DYNAMIC_PLUGINS
+endif
+
# Copy libCompilerDriver to the bin dir so that llvmc can find it.
ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
OpenPOWER on IntegriCloud