summaryrefslogtreecommitdiffstats
path: root/crypto/aes/asm/aesni-sha256-x86_64.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2014-06-28 17:23:21 +0200
committerAndy Polyakov <appro@openssl.org>2014-06-28 17:23:21 +0200
commita356e488ad50ca9de3fc4955839441c5aff11ed3 (patch)
treec91932bc8cfa2a0d38e0c1e7e1a2b1965c490f1b /crypto/aes/asm/aesni-sha256-x86_64.pl
parent7c206db9280865ae4af352dbc14e9019a6c4795d (diff)
x86_64 assembly pack: refine clang detection.
Diffstat (limited to 'crypto/aes/asm/aesni-sha256-x86_64.pl')
-rw-r--r--crypto/aes/asm/aesni-sha256-x86_64.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/aes/asm/aesni-sha256-x86_64.pl b/crypto/aes/asm/aesni-sha256-x86_64.pl
index 5bc0940e9e..6abb5e542e 100644
--- a/crypto/aes/asm/aesni-sha256-x86_64.pl
+++ b/crypto/aes/asm/aesni-sha256-x86_64.pl
@@ -59,8 +59,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx = ($1>=10) + ($1>=11);
}
-if (!$avx && `$ENV{CC} -v 2>&1` =~ /LLVM ([3-9]\.[0-9]+)/) {
- $avx = ($1>=3.0) + ($1>=3.1);
+if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
+ $avx = ($2>=3.0) + ($2>3.0);
}
$shaext=$avx; ### set to zero if compiling for 1.0.1