x86_64 assembly pack: tune clang version detection.
[openssl.git] / crypto / sha / asm / sha1-x86_64.pl
index d6b0722f31af0ddc16ab2758cb88f36da412d118..b35bb0ae9669f9e949420f2091077e4664f202e8 100755 (executable)
@@ -108,7 +108,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) ([2-9]\.[0-9]+)/) {
+if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([2-9]\.[0-9]+)/) {
        $avx = ($2>=3.0) + ($2>3.0);
 }