mirror of https://github.com/AxioDL/nod.git
Fixes for Apple Silicon
- Only include cpuid.h for x86 - Only set -maes flag for x86
This commit is contained in:
parent
d53d677038
commit
02c188497a
|
@ -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()
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#if _WIN32
|
||||
#include <intrin.h>
|
||||
#else
|
||||
#elif __x86_64__
|
||||
#include <cpuid.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue