Skip to content

Commit

Permalink
fix: another shot at wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyconover committed Jul 2, 2024
1 parent 10b90ac commit 8588f54
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ elseif("${OS_NAME}" STREQUAL "osx")
set(Rust_CARGO_TARGET "aarch64-apple-darwin")
endif()
elseif(WIN32)
if (MINGW AND "${OS_ARCH}" STREQUAL "arm64")
set(Rust_CARGO_TARGET "aarch64-pc-windows-gnu")
elseif (MINGW AND "${OS_ARCH}" STREQUAL "amd64")
set(Rust_CARGO_TARGET "x86_64-pc-windows-gnu")
elseif (MSVC AND "${OS_ARCH}" STREQUAL "arm64")
set(Rust_CARGO_TARGET "aarch64-pc-windows-msvc")
elseif (MSVC AND "${OS_ARCH}" STREQUAL "amd64")
set(Rust_CARGO_TARGET "x86_64-pc-windows-msvc")
endif()
# if (MINGW AND "${OS_ARCH}" STREQUAL "arm64")
# set(Rust_CARGO_TARGET "aarch64-pc-windows-gnu")
# elseif (MINGW AND "${OS_ARCH}" STREQUAL "amd64")
# set(Rust_CARGO_TARGET "x86_64-pc-windows-gnu")
# elseif (MSVC AND "${OS_ARCH}" STREQUAL "arm64")
# set(Rust_CARGO_TARGET "aarch64-pc-windows-msvc")
# elseif (MSVC AND "${OS_ARCH}" STREQUAL "amd64")
# set(Rust_CARGO_TARGET "x86_64-pc-windows-msvc")
# endif()
else()
set(Rust_CARGO_TARGET "wasm32-unknown-emscripten")
endif()

# We currently only support the predefined targets.
Expand Down

0 comments on commit 8588f54

Please sign in to comment.