Skip to content
Permalink
Browse files

8233880: Support compilers with multi-digit major version numbers

Reviewed-by: tbell
  • Loading branch information
Florian Weimer
Florian Weimer committed Nov 12, 2019
1 parent 857de6c commit 7dafe378d3b4fbbb39d1bbfdb50cc655ebf633bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 make/autoconf/toolchain.m4
@@ -481,7 +481,7 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
$SED -e 's/ *Copyright .*//'`
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
# clang --version output typically looks like
# Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

0 comments on commit 7dafe37

Please sign in to comment.
You can’t perform that action at this time.