MacOSX: Make AESNI availability linked to compiler target and not compilation host

This commit is contained in:
Mounir IDRASSI committed 2021-08-16 00:26:37 +02:00
1 parent 8ae5a715d6
commit d448713e61
3 files changed
+4 -9

No files matched your search

+1 -6
View File
@@ -14,8 +14,7 @@
#define TC_HEADER_Encryption_Ciphers
#include "Platform/Platform.h"
#include "Crypto/config.h"
#include "Crypto/cpu.h"
namespace VeraCrypt
{
@@ -126,10 +125,6 @@ namespace VeraCrypt
#undef TC_EXCEPTION
#if (defined (TC_ARCH_X86) || defined (TC_ARCH_X64)) && !defined (__ppc__)
# define TC_AES_HW_CPU
#endif
}
#endif // TC_HEADER_Encryption_Ciphers