8233880: Support compilers with multi-digit major version numbers
Reviewed-by: tbell
This commit is contained in:
parent
857de6c9e8
commit
7dafe378d3
@ -481,7 +481,7 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
|
|||||||
COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
|
COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
|
||||||
$SED -e 's/ *Copyright .*//'`
|
$SED -e 's/ *Copyright .*//'`
|
||||||
COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
|
COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
|
||||||
$SED -e 's/^.* \(@<:@1-9@:>@\.@<:@0-9.@:>@*\)@<:@^0-9.@:>@.*$/\1/'`
|
$SED -e 's/^.* \(@<:@1-9@:>@<:@0-9@:>@*\.@<:@0-9.@:>@*\)@<:@^0-9.@:>@.*$/\1/'`
|
||||||
elif test "x$TOOLCHAIN_TYPE" = xclang; then
|
elif test "x$TOOLCHAIN_TYPE" = xclang; then
|
||||||
# clang --version output typically looks like
|
# clang --version output typically looks like
|
||||||
# Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
|
# Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
|
||||||
|
Loading…
Reference in New Issue
Block a user