[llvm-commits] CVS: llvm/autoconf/configure.ac
Reid Spencer
reid at x10sys.com
Mon May 8 17:31:14 PDT 2006
Changes in directory llvm/autoconf:
configure.ac updated: 1.223 -> 1.224
---
Log message:
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.
---
Diffs of the changes: (+1 -1)
configure.ac | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.223 llvm/autoconf/configure.ac:1.224
--- llvm/autoconf/configure.ac:1.223 Thu Apr 27 02:49:24 2006
+++ llvm/autoconf/configure.ac Mon May 8 19:31:01 2006
@@ -619,7 +619,7 @@
AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath)
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
AC_SUBST(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/'`]
AC_SUBST(LLVMGCC_VERSION,$llvmgccversion)
AC_SUBST(LLVMGCC_MAJVERS,$llvmgccmajvers)
More information about the llvm-commits
mailing list