Ignore vendor name in Clang version number.
[openssl.git] / crypto / aes / asm / aesni-sha256-x86_64.pl
index 38901feb666fc39e642b7179f75ae7dabe829ee7..5521766a6a7dcf3f3df589b610f4784a17c0b306 100644 (file)
@@ -71,7 +71,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
        $avx = ($1>=10) + ($1>=12);
 }
 
-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);
 }