x86_64 assembly pack: tune clang version detection.
[openssl.git] / crypto / aes / asm / aesni-sha256-x86_64.pl
index 8a8199445b01a0aa228cbd17f476121b77061f28..f72a0cbc86cb5fea51758a27771c1ff4bbdd818c 100644 (file)
@@ -60,7 +60,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
        $avx = ($1>=10) + ($1>=12);
 }
 
-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);
 }