From 2fe6c254f72628c22473800c5ce002d09391d102 Mon Sep 17 00:00:00 2001 From: ojab Date: Thu, 5 Jan 2012 14:18:34 +0400 Subject: [PATCH] Strip LLVM svn rev from `llvm-config --version` output. Reviewed-by: Vinson Lee --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`" -- 2.30.2