mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Build: Fix Linux aarch64 GCC build (#29831)
(cherry picked from commit 370685457e)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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__))
|
||||
|
||||
Reference in New Issue
Block a user