mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-30 04:56:49 +00:00
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
This commit is contained in:
parent
86a3510a68
commit
cc4f8bcedc
@ -303,3 +303,8 @@ BINUTILS_INCDIR := @BINUTILS_INCDIR@
|
|||||||
# (Windows).
|
# (Windows).
|
||||||
ENABLE_LLVMC_DYNAMIC = 0
|
ENABLE_LLVMC_DYNAMIC = 0
|
||||||
#@ENABLE_LLVMC_DYNAMIC@
|
#@ENABLE_LLVMC_DYNAMIC@
|
||||||
|
|
||||||
|
# When ENABLE_LLVMC_DYNAMIC_PLUGINS is enabled, LLVMC will have dynamic plugin
|
||||||
|
# support (via the -load option).
|
||||||
|
ENABLE_LLVMC_DYNAMIC_PLUGINS = 1
|
||||||
|
#@ENABLE_LLVMC_DYNAMIC_PLUGINS@
|
||||||
|
@ -605,12 +605,23 @@ AC_ARG_ENABLE(llvmc-dynamic,AS_HELP_STRING(
|
|||||||
--enable-llvmc-dynamic,
|
--enable-llvmc-dynamic,
|
||||||
[Link LLVMC dynamically (default is NO, unless on Win32)]),,
|
[Link LLVMC dynamically (default is NO, unless on Win32)]),,
|
||||||
enableval=$llvmc_dynamic)
|
enableval=$llvmc_dynamic)
|
||||||
if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1; then
|
if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
|
||||||
AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[ENABLE_LLVMC_DYNAMIC=1]])
|
AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[ENABLE_LLVMC_DYNAMIC=1]])
|
||||||
else
|
else
|
||||||
AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[]])
|
AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[]])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl --enable-llvmc-dynamic-plugins : should LLVMC support dynamic plugins?
|
||||||
|
AC_ARG_ENABLE(llvmc-dynamic-plugins,AS_HELP_STRING(
|
||||||
|
--enable-llvmc-dynamic-plugins,
|
||||||
|
[Enable dynamic LLVMC plugins (default is YES)]),,
|
||||||
|
enableval=yes)
|
||||||
|
if test ${enableval} = "yes" ; then
|
||||||
|
AC_SUBST(ENABLE_LLVMC_DYNAMIC_PLUGINS,[[ENABLE_LLVMC_DYNAMIC_PLUGINS=1]])
|
||||||
|
else
|
||||||
|
AC_SUBST(ENABLE_LLVMC_DYNAMIC_PLUGINS,[[]])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl===-----------------------------------------------------------------------===
|
dnl===-----------------------------------------------------------------------===
|
||||||
dnl===
|
dnl===
|
||||||
dnl=== SECTION 4: Check for programs we need and that they are the right version
|
dnl=== SECTION 4: Check for programs we need and that they are the right version
|
||||||
|
@ -12,7 +12,10 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/CompilerDriver/BuiltinOptions.h"
|
#include "llvm/CompilerDriver/BuiltinOptions.h"
|
||||||
|
|
||||||
|
#ifdef ENABLE_LLVMC_DYNAMIC_PLUGINS
|
||||||
#include "llvm/Support/PluginLoader.h"
|
#include "llvm/Support/PluginLoader.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace cl = llvm::cl;
|
namespace cl = llvm::cl;
|
||||||
|
|
||||||
|
@ -25,6 +25,10 @@ REQUIRES_EH := 1
|
|||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
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.
|
# Copy libCompilerDriver to the bin dir so that llvmc can find it.
|
||||||
ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
|
ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user