Skip to content

Commit

Permalink
Build: Fix Linux aarch64 GCC build (TrinityCore#29831)
Browse files Browse the repository at this point in the history
  • Loading branch information
leelf00 authored Mar 27, 2024
1 parent 6a54dc5 commit 3706854
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/macros/CheckPlatform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions dep/argon2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ file(GLOB_RECURSE sources *.c)

if(TRINITY_SYSTEM_PROCESSOR MATCHES "x86|amd64")
list(REMOVE_ITEM sources
${CMAKE_CURRENT_SOURCE_DIR}/argon2/opt.c)
${CMAKE_CURRENT_SOURCE_DIR}/argon2/ref.c)
else()
list(REMOVE_ITEM sources
${CMAKE_CURRENT_SOURCE_DIR}/argon2/ref.c)
${CMAKE_CURRENT_SOURCE_DIR}/argon2/opt.c)
endif()

add_library(argon2 STATIC
Expand Down
2 changes: 1 addition & 1 deletion src/common/Utilities/SFMTRand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit 3706854

Please sign in to comment.