x86_64 assembly pack: tune clang version detection.
[openssl.git] / crypto / sha / asm / sha256-mb-x86_64.pl
index ab0f028bef0a58e7412de425d921235cc3ccb4a5..0b34daacab9de8d02e37c6c3064e3988c2f01bce 100644 (file)
@@ -60,7 +60,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);
 }