summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorojab <[email protected]>2012-01-05 14:18:34 +0400
committerVinson Lee <[email protected]>2012-01-05 22:44:16 -0800
commit2fe6c254f72628c22473800c5ce002d09391d102 (patch)
tree742c41f983aca98bd177f9c00c39287840b611aa
parent44c089bd485a00462aeac361736035dc56895441 (diff)
Strip LLVM svn rev from `llvm-config --version` output.
Reviewed-by: Vinson Lee <[email protected]>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9cf3fdcc948..cc139ada577 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`"