Fix --enable-jit=auto for out-of-tree builds.
This commit is contained in:
parent
4fd8932e83
commit
473d8f95d7
|
@ -140,6 +140,10 @@ no result, so I have now hacked CMakeLists.txt along the lines of some changes
|
||||||
I found on the Internet. The new code no longer needs the policy setting, and
|
I found on the Internet. The new code no longer needs the policy setting, and
|
||||||
it appears to work fine on Linux.
|
it appears to work fine on Linux.
|
||||||
|
|
||||||
|
35. Setting --enable-jit=auto for an out-of-tree build failed because the
|
||||||
|
source directory wasn't in the search path for AC_TRY_COMPILE always. Patch
|
||||||
|
from Ross Burton.
|
||||||
|
|
||||||
|
|
||||||
Version 10.32 10-September-2018
|
Version 10.32 10-September-2018
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
|
@ -146,12 +146,15 @@ AC_ARG_ENABLE(jit,
|
||||||
# This code enables JIT if the hardware supports it.
|
# This code enables JIT if the hardware supports it.
|
||||||
if test "$enable_jit" = "auto"; then
|
if test "$enable_jit" = "auto"; then
|
||||||
AC_LANG(C)
|
AC_LANG(C)
|
||||||
|
SAVE_CPPFLAGS=$CPPFLAGS
|
||||||
|
CPPFLAGS=-I$srcdir
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
||||||
#define SLJIT_CONFIG_AUTO 1
|
#define SLJIT_CONFIG_AUTO 1
|
||||||
#include "src/sljit/sljitConfigInternal.h"
|
#include "src/sljit/sljitConfigInternal.h"
|
||||||
#if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
|
#if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
|
||||||
#error unsupported
|
#error unsupported
|
||||||
#endif]])], enable_jit=yes, enable_jit=no)
|
#endif]])], enable_jit=yes, enable_jit=no)
|
||||||
|
CPPFLAGS=$SAVE_CPPFLAGS
|
||||||
echo checking for JIT support on this hardware... $enable_jit
|
echo checking for JIT support on this hardware... $enable_jit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue