Mesa (master): autotools: Better describe which cases OProfileJIT is required.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Apr 9 16:40:03 UTC 2013


Module: Mesa
Branch: master
Commit: c2958741298f54ac0360a90f79799b46da248328
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2958741298f54ac0360a90f79799b46da248328

Author: Johannes Obermayr <johannesobermayr at gmx.de>
Date:   Tue Apr  9 17:38:42 2013 +0100

autotools: Better describe which cases OProfileJIT is required.

Signed-off-by: José Fonseca <jfonseca at vmware.com>

---

 configure.ac |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index e202e2d..6f8fc9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1644,8 +1644,12 @@ if test "x$enable_gallium_llvm" = xyes; then
         if $LLVM_CONFIG --components | grep -q '\<mcjit\>'; then
             LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"
         fi
-        if $LLVM_CONFIG --components | grep -q '\<oprofilejit\>'; then
-            LLVM_COMPONENTS="${LLVM_COMPONENTS} oprofilejit"
+
+        if test "x$enable_debug" = xyes; then
+            # Debug builds require OProfileJIT if LLVM was built with support for it
+            if $LLVM_CONFIG --components | grep -q '\<oprofilejit\>'; then
+                LLVM_COMPONENTS="${LLVM_COMPONENTS} oprofilejit"
+            fi
         fi
 
         if test "x$enable_opencl" = xyes; then




More information about the mesa-commit mailing list