Merge branch 'master' of git.openssl.org:openssl
[oweals/openssl.git] / crypto / aes / asm / aesni-sha1-x86_64.pl
index 7f253750f3f41554b305284807bf3f2449d23b93..97992adca7c3480342e835788db88e886caf6e41 100644 (file)
@@ -94,6 +94,7 @@ $avx=1 if (!$avx && $win64 && ($flavour =~ /nasm/ || $ENV{ASM} =~ /nasm/) &&
 $avx=1 if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
           `ml64 2>&1` =~ /Version ([0-9]+)\./ &&
           $1>=10);
+$avx=1 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/ && $2>=3.0);
 
 $shaext=1;     ### set to zero if compiling for 1.0.1