mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
autoconf: Only kink mcjit component when available.
Should fix build failures with older LLVM version, but only tested on LLVM 3.1.
This commit is contained in:
parent
735070c45b
commit
bd9bf7a424
1 changed files with 7 additions and 3 deletions
10
configure.ac
10
configure.ac
|
|
@ -1847,10 +1847,14 @@ if test "x$enable_gallium_llvm" = xyes; then
|
|||
dnl We can't use $LLVM_VERSION because it has 'svn' stripped out,
|
||||
LLVM_LIBS="-lLLVM-`$LLVM_CONFIG --version`"
|
||||
else
|
||||
LLVM_LIBS="`$LLVM_CONFIG --libs engine bitwriter mcjit`"
|
||||
if test "x$enable_opencl" = xyes; then
|
||||
LLVM_LIBS="${LLVM_LIBS} `$LLVM_CONFIG --libs ipo linker instrumentation`"
|
||||
LLVM_COMPONENTS="engine bitwriter"
|
||||
if $LLVM_CONFIG --components | grep -q '\<mcjit\>'; then
|
||||
LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"
|
||||
fi
|
||||
if test "x$enable_opencl" = xyes; then
|
||||
LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo linker instrumentation"
|
||||
fi
|
||||
LLVM_LIBS="`$LLVM_CONFIG --libs ${LLVM_COMPONENTS}`"
|
||||
fi
|
||||
LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
|
||||
LLVM_BINDIR=`$LLVM_CONFIG --bindir`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue