[Mesa-dev] [PATCH v2] configure.ac: add llvm inteljitevents component if enabled

Tim Rowley timothy.o.rowley at intel.com
Fri Aug 26 18:24:52 UTC 2016


Needed to successfully link llvmpipe or swr when using shared llvm libs
built with inteljitevents enabled.

v2: Make adding inteljitevents component global rather than just
llvmpipe/swr, since libgallium will have a symbol dependency.
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 75b1de4..87933a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2190,6 +2190,10 @@ if test "x$enable_gallium_llvm" = xyes; then
 
         LLVM_COMPONENTS="engine bitwriter mcjit mcdisassembler"
 
+        if $LLVM_CONFIG --components | grep -q inteljitevents ; then
+            LLVM_COMPONENTS="${LLVM_COMPONENTS} inteljitevents"
+        fi
+
         if test "x$enable_opencl" = xyes; then
             llvm_check_version_for "3" "6" "0" "opencl"
 
-- 
2.7.4



More information about the mesa-dev mailing list