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.
3f69ad7b79
This commit is contained in:
fekt
2023-12-04 05:10:48 +00:00
parent 901152cc50
commit 032f9b62da

View File

@@ -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)