x86_64 assembly pack: tune clang version detection.
[openssl.git] / crypto / sha / asm / sha1-mb-x86_64.pl
index 099c803ebc41e76ef6c90aeb209d31fd1687e6c7..75d9892fdef6af460202bd9c887edb067d43ed82 100644 (file)
@@ -59,7 +59,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
        $avx = ($1>=10) + ($1>=11);
 }
 
-if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
+if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
        $avx = ($2>=3.0) + ($2>3.0);
 }