Skip to content
Permalink
Browse files
8233880: Support compilers with multi-digit major version numbers
Backport-of: 7dafe37
  • Loading branch information
Olga Mikhaltsova authored and Yuri Nesterenko committed Mar 4, 2021
1 parent 26f7e6f commit 2f2f2deb364f0e83a027b2f6901857fa996b3fd7
Showing with 1 addition and 1 deletion.
  1. +1 −1 make/autoconf/toolchain.m4
@@ -489,7 +489,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)

1 comment on commit 2f2f2de

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 2f2f2de Mar 4, 2021

Please sign in to comment.