Ignore vendor name in Clang version number.
[openssl.git] / crypto / modes / asm / aesni-gcm-x86_64.pl
index 37953109a522c290a480bfc0a69b3b87a9a3dd39..eaf4d9c755fbb2566bde0e3d636ff86149a03027 100644 (file)
@@ -67,7 +67,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);
 }