if(TARGET_ARCH STREQUAL "x86_64")
set(TARGET_AMD64 1)
set(MONO_ARCHITECTURE "\"amd64\"")
+ set(TARGET_SIZEOF_VOID_P 8)
+ set(SIZEOF_REGISTER 8)
elseif(TARGET_ARCH STREQUAL "x86")
set(TARGET_X86 1)
set(MONO_ARCHITECTURE "\"x86\"")
+ set(TARGET_SIZEOF_VOID_P 4)
+ set(SIZEOF_REGISTER 4)
elseif(TARGET_ARCH STREQUAL "arm64")
set(TARGET_ARM64 1)
set(MONO_ARCHITECTURE "\"arm64\"")
+ set(TARGET_SIZEOF_VOID_P 8)
+ set(SIZEOF_REGISTER 8)
elseif(TARGET_ARCH MATCHES "arm")
set(TARGET_ARM 1)
set(MONO_ARCHITECTURE "\"arm\"")
# FIXME:
add_definitions("-DARM_FPU_VFP=1")
+ set(TARGET_SIZEOF_VOID_P 4)
+ set(SIZEOF_REGISTER 4)
elseif(TARGET_ARCH STREQUAL "wasm")
set(MONO_ARCHITECTURE "\"wasm\"")
+ set(TARGET_SIZEOF_VOID_P 4)
+ set(SIZEOF_REGISTER 4)
else()
message(FATAL_ERROR "TARGET_ARCH='${TARGET_ARCH}' not supported.")
endif()
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
-# FIXME:
-set(TARGET_SIZEOF_VOID_P "${SIZEOF_VOID_P}")
-set(SIZEOF_REGISTER "${SIZEOF_VOID_P}")
-
if(IS_BIG_ENDIAN)
set(TARGET_BYTE_ORDER G_BIG_ENDIAN)
else()