Better detection of aligned malloc functions
This commit is contained in:
parent
dba336aa04
commit
bcc5581535
2 changed files with 43 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue