Disable Cryptogams AES under Clang
What a surprise... Clang pretends to be GCC with __GNUC__ but fails to consume the source filepull/687/head
parent
3ff7d7f028
commit
1e77a72ed6
5
config.h
5
config.h
|
|
@ -655,8 +655,9 @@ NAMESPACE_END
|
||||||
// not provide an ARM implementation. The Cryptogams implementation
|
// not provide an ARM implementation. The Cryptogams implementation
|
||||||
// is about 2x faster than C/C++. Define this to use the Cryptogams
|
// is about 2x faster than C/C++. Define this to use the Cryptogams
|
||||||
// AES implementation on GNU Linux systems. When defined, Crypto++
|
// AES implementation on GNU Linux systems. When defined, Crypto++
|
||||||
// will use aes-armv4.S.
|
// will use aes-armv4.S. LLVM miscomiles aes-armv4.S so disable
|
||||||
#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__GNUC__) && defined(__arm__)
|
// under Clang. See https://bugs.llvm.org/show_bug.cgi?id=38133.
|
||||||
|
#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__arm__) && defined(__GNUC__) && !defined(__clang__)
|
||||||
# define CRYPTOGAMS_ARM_AES 1
|
# define CRYPTOGAMS_ARM_AES 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue