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

Author: ojab <[email protected]>
Date:   Thu Jan  5 14:18:34 2012 +0400

Strip LLVM svn rev from `llvm-config --version` output.

Reviewed-by: Vinson Lee <[email protected]>

---

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

diff --git a/configure.ac b/configure.ac
index 9cf3fdc..cc139ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1773,7 +1773,7 @@ if test "x$enable_gallium_llvm" = xyes; then
     AC_PATH_PROG([LLVM_CONFIG], [llvm-config], [no])
 
     if test "x$LLVM_CONFIG" != xno; then
-       LLVM_VERSION=`$LLVM_CONFIG --version`
+       LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
        LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 
's/-pedantic//g'`
        LLVM_LIBS="`$LLVM_CONFIG --libs`"
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to