aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/macros/CheckPlatform.cmake2
-rw-r--r--src/common/Utilities/SFMTRand.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/macros/CheckPlatform.cmake b/cmake/macros/CheckPlatform.cmake
index c0a5185b805..5dbd52a8773 100644
--- a/cmake/macros/CheckPlatform.cmake
+++ b/cmake/macros/CheckPlatform.cmake
@@ -9,7 +9,7 @@ endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64|x86_64|AMD64")
set(TRINITY_SYSTEM_PROCESSOR "amd64")
-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM)64$")
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM|aarch)64$")
set(TRINITY_SYSTEM_PROCESSOR "arm64")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM)$")
set(TRINITY_SYSTEM_PROCESSOR "arm")
diff --git a/src/common/Utilities/SFMTRand.cpp b/src/common/Utilities/SFMTRand.cpp
index 6aeb49b9e38..63918fce710 100644
--- a/src/common/Utilities/SFMTRand.cpp
+++ b/src/common/Utilities/SFMTRand.cpp
@@ -24,7 +24,7 @@
#if __has_include(<mm_malloc.h>)
#include <mm_malloc.h>
-#elif __has_include(<malloc.h>)
+#elif __has_include(<malloc.h>) && TRINITY_COMPILER == TRINITY_COMPILER_MICROSOFT
#include <malloc.h>
#else
static __inline__ void *__attribute__((__always_inline__, __nodebug__, __malloc__))