[llvm-commits] CVS: llvm/configure

Reid Spencer reid at x10sys.com
Mon May 8 17:31:14 PDT 2006



Changes in directory llvm:

configure updated: 1.226 -> 1.227
---
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 |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/configure
diff -u llvm/configure:1.226 llvm/configure:1.227
--- llvm/configure:1.226	Thu Apr 27 02:49:18 2006
+++ llvm/configure	Mon May  8 19:31:00 2006
@@ -30725,7 +30725,7 @@
   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
 






More information about the llvm-commits mailing list