aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit718584f40a25abe983612b4217b94b95c388362c (patch)
tree4ed15ba805f64fc1c6a5d74101547bb044088c08 /lib/CompilerDriver
parent714440d7b74649deca508a402bfdf3e6a00b4703 (diff)
downloadexternal_llvm-718584f40a25abe983612b4217b94b95c388362c.zip
external_llvm-718584f40a25abe983612b4217b94b95c388362c.tar.gz
external_llvm-718584f40a25abe983612b4217b94b95c388362c.tar.bz2
LLVMC can be now compiled w/o dynamic plugin support.
Controlled via the --enable-llvmc-dynamic-plugins option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver')
-rw-r--r--lib/CompilerDriver/BuiltinOptions.cpp3
-rw-r--r--lib/CompilerDriver/Makefile4
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/CompilerDriver/BuiltinOptions.cpp b/lib/CompilerDriver/BuiltinOptions.cpp
index c8b7682..a3364e8 100644
--- a/lib/CompilerDriver/BuiltinOptions.cpp
+++ b/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/lib/CompilerDriver/Makefile b/lib/CompilerDriver/Makefile
index 6084e88..a5ecfd5 100644
--- a/lib/CompilerDriver/Makefile
+++ b/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)