mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Condition out AES-NI support if using a too-old clang.
A clang too old to have __attribute__((target)) will not manage to compile the clang-style hardware-accelerated functions, so it shouldn't try.
This commit is contained in:
parent
8ec55ef25f
commit
599bab84a1
8
sshaes.c
8
sshaes.c
@ -1151,6 +1151,14 @@ const struct ssh2_ciphers ssh2_aes = {
|
||||
# undef COMPILER_SUPPORTS_AES_NI
|
||||
#endif
|
||||
|
||||
#if defined(__clang__)
|
||||
# if !__has_attribute(target)
|
||||
/* If clang is old enough not to support __attribute__((target(...)))
|
||||
* as used below, then we can't use this code after all. */
|
||||
# undef COMPILER_SUPPORTS_AES_NI
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef COMPILER_SUPPORTS_AES_NI
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user