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)
|
target_sources(nod PRIVATE FileIOFILE.cpp)
|
||||||
endif()
|
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)
|
set_source_files_properties(aes.cpp PROPERTIES COMPILE_FLAGS -maes)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#else
|
#elif __x86_64__
|
||||||
#include <cpuid.h>
|
#include <cpuid.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue