llvm.org GIT mirror llvm / cc4f8bc
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 Mikhail Glushenkov 10 years ago
4 changed file(s) with 24 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
302302 # (Windows).
303303 ENABLE_LLVMC_DYNAMIC = 0
304304 #@ENABLE_LLVMC_DYNAMIC@
305
306 # When ENABLE_LLVMC_DYNAMIC_PLUGINS is enabled, LLVMC will have dynamic plugin
307 # support (via the -load option).
308 ENABLE_LLVMC_DYNAMIC_PLUGINS = 1
309 #@ENABLE_LLVMC_DYNAMIC_PLUGINS@
604604 --enable-llvmc-dynamic,
605605 [Link LLVMC dynamically (default is NO, unless on Win32)]),,
606606 enableval=$llvmc_dynamic)
607 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1; then
607 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
608608 AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[ENABLE_LLVMC_DYNAMIC=1]])
609609 else
610610 AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[]])
611 fi
612
613 dnl --enable-llvmc-dynamic-plugins : should LLVMC support dynamic plugins?
614 AC_ARG_ENABLE(llvmc-dynamic-plugins,AS_HELP_STRING(
615 --enable-llvmc-dynamic-plugins,
616 [Enable dynamic LLVMC plugins (default is YES)]),,
617 enableval=yes)
618 if test ${enableval} = "yes" ; then
619 AC_SUBST(ENABLE_LLVMC_DYNAMIC_PLUGINS,[[ENABLE_LLVMC_DYNAMIC_PLUGINS=1]])
620 else
621 AC_SUBST(ENABLE_LLVMC_DYNAMIC_PLUGINS,[[]])
611622 fi
612623
613624 dnl===-----------------------------------------------------------------------===
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/CompilerDriver/BuiltinOptions.h"
14
15 #ifdef ENABLE_LLVMC_DYNAMIC_PLUGINS
1416 #include "llvm/Support/PluginLoader.h"
17 #endif
1518
1619 namespace cl = llvm::cl;
1720
2424
2525 include $(LEVEL)/Makefile.common
2626
27 ifeq ($(ENABLE_LLVMC_DYNAMIC_PLUGINS), 1)
28 CPP.Flags += -DENABLE_LLVMC_DYNAMIC_PLUGINS
29 endif
30
2731 # Copy libCompilerDriver to the bin dir so that llvmc can find it.
2832 ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
2933