Ignore vendor name in Clang version number.
[openssl.git] / crypto / sha / asm / sha1-x86_64.pl
index 674b288f66cdf004c3331a1daf551cbb7bc02ec7..c66b8fca875e87133d040ad3ff12a4719e7b8572 100755 (executable)
@@ -120,7 +120,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
        $avx = ($1>=10) + ($1>=11);
 }
 
-if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|.*based on LLVM) ([0-9]+\.[0-9]+)/) {
+if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:clang|LLVM) version|.*based on LLVM) ([0-9]+\.[0-9]+)/) {
        $avx = ($2>=3.0) + ($2>3.0);
 }