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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user