This commit is contained in:
momo5502
2025-04-14 20:01:00 +02:00
parent d9fc5457bc
commit 68022ef501
6 changed files with 21 additions and 6 deletions

View File

@@ -1,4 +1,6 @@
add_subdirectory(unicorn-emulator)
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
add_subdirectory(unicorn-emulator)
endif()
if (MOMO_ENABLE_RUST_CODE)
add_subdirectory(icicle-emulator)

View File

@@ -13,7 +13,9 @@ endif()
set(CARGO_TRIPLE)
set(CARGO_OPTIONS)
if(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 4)
if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
set(CARGO_TRIPLE "wasm32-unknown-emscripten")
elseif(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 4)
set(CARGO_TRIPLE "i686-pc-windows-msvc")
elseif(CMAKE_SYSTEM_NAME STREQUAL "iOS")
set(CARGO_TRIPLE "aarch64-apple-ios")