Fixes for Apple Silicon

- Only include cpuid.h for x86
- Only set -maes flag for x86
This commit is contained in:
Luke Street 2021-01-06 20:32:21 -05:00
parent d53d677038
commit 02c188497a
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ else()
target_sources(nod PRIVATE FileIOFILE.cpp)
endif()
if(NOT MSVC AND NOT NX)
if(NOT MSVC AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL x86_64)
set_source_files_properties(aes.cpp PROPERTIES COMPILE_FLAGS -maes)
endif()

View File

@ -4,7 +4,7 @@
#if _WIN32
#include <intrin.h>
#else
#elif __x86_64__
#include <cpuid.h>
#endif