summaryrefslogtreecommitdiffstats
path: root/crypto/modes/asm/aesni-gcm-x86_64.pl
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/modes/asm/aesni-gcm-x86_64.pl')
-rw-r--r--crypto/modes/asm/aesni-gcm-x86_64.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/modes/asm/aesni-gcm-x86_64.pl b/crypto/modes/asm/aesni-gcm-x86_64.pl
index 608c3f7805..378c0d1685 100644
--- a/crypto/modes/asm/aesni-gcm-x86_64.pl
+++ b/crypto/modes/asm/aesni-gcm-x86_64.pl
@@ -57,7 +57,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);
}