x86_64 assembly pack: tune clang version detection.
[openssl.git] / crypto / modes / asm / ghash-x86_64.pl
index a63c923429f32e1794c482b53445636b3dfcd948..1e1dae2ae690ac27f32f7fb661f4ac90c148980d 100644 (file)
@@ -106,7 +106,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);
 }