summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-09 00:31:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-09 00:31:01 +0000
commitb5d75b8618bd0a9cde51af1f3f48a3d124b23d01 (patch)
treef15821762014136c89a81694aa5c1a0a529bf6b0 /configure
parente7fd553b3be8b95dc0946cd3267bc2db859cd3d8 (diff)
downloadexternal_llvm-b5d75b8618bd0a9cde51af1f3f48a3d124b23d01.zip
external_llvm-b5d75b8618bd0a9cde51af1f3f48a3d124b23d01.tar.gz
external_llvm-b5d75b8618bd0a9cde51af1f3f48a3d124b23d01.tar.bz2
Use the -dumpversion option to llvm-gcc which gives us just the version #
and is unlikely to change in future releases. This also simplifies the parsing of the full and major llvm-gcc version numbers in the script. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index e196a0f..351cdd5 100755
--- a/configure
+++ b/configure
@@ -30725,7 +30725,7 @@ if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
LLVMGCCDIR=$llvmgccdir
- llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
+ llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
LLVMGCC_VERSION=$llvmgccversion