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)