x86_64 assembly pack: tune clang version detection even further.
[openssl.git] / crypto / sha / asm / sha512-x86_64.pl
index 58665667f14934f6fc28747b11b4164f50cf328a..78e445f3fe4ac22f806daf8e535fbe7f39be212d 100755 (executable)
@@ -124,7 +124,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) ([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);
 }