Bug 767848 - Backout NSPR MSVC version detection change from bug 448573. r=ted

This commit is contained in:
Cameron McCormack 2012-06-27 10:13:24 +10:00
parent be79a0decf
commit c7bf5b481a

View File

@ -1877,7 +1877,7 @@ tools are selected during the Xcode/Developer Tools installation.])
# Determine compiler version
changequote(,)
_MSMT_VER_FILTER='s|.*[^!-~]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
_MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
changequote([,])
CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"`
_CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'`