1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-06 15:42:38 -05:00

Better detection of aligned malloc functions

This commit is contained in:
SChernykh
2025-06-14 18:00:27 +02:00
parent dba336aa04
commit bcc5581535
2 changed files with 43 additions and 6 deletions

View File

@@ -1,4 +1,12 @@
if (WITH_RANDOMX)
include(CheckFunctionExists)
check_function_exists(posix_memalign HAVE_POSIX_MEMALIGN)
if(HAVE_POSIX_MEMALIGN)
add_definitions(/DHAVE_POSIX_MEMALIGN)
endif()
add_definitions(/DXMRIG_ALGO_RANDOMX)
set(WITH_ARGON2 ON)