From 032f9b62da1a417e82b6c63c35c2ea70d2e5ae5c Mon Sep 17 00:00:00 2001 From: fekt Date: Mon, 4 Dec 2023 05:10:48 +0000 Subject: [PATCH] MXE cross-compile fix for Windows builds CMAKE_SIZEOF_VOID_P EQUAL 8 was added in newer versions of RandomX and breaks cross-compiling with MXE for Windows builds even though they are 64-bit. https://github.com/tevador/RandomX/commit/3f69ad7b79c94e2dcef4515c598e6007ae15ba0b --- src/RandomX/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RandomX/CMakeLists.txt b/src/RandomX/CMakeLists.txt index ebbdff2b6..b1fdff959 100644 --- a/src/RandomX/CMakeLists.txt +++ b/src/RandomX/CMakeLists.txt @@ -96,7 +96,7 @@ function(add_flag flag) endfunction() # x86-64 -if ((CMAKE_SIZEOF_VOID_P EQUAL 8) AND (ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "amd64")) +if (ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "amd64") list(APPEND randomx_sources src/jit_compiler_x86.cpp)