Skip to content

Commit

Permalink
fix: wasm32-wasi install for toolchain (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Jul 11, 2024
1 parent d7c6348 commit fa1247b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/init-corrosion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(Rust_CARGO_TARGET_LINK_NATIVE_LIBS "")
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/rust-toolchain.toml" Rust_TOOLCHAIN REGEX "^channel ?=")
string(REGEX MATCH "[0-9.]+" Rust_TOOLCHAIN "${Rust_TOOLCHAIN}")
execute_process(COMMAND rustup toolchain install ${Rust_TOOLCHAIN})
execute_process(COMMAND rustup target add wasm32-wasi)
execute_process(COMMAND rustup target add --toolchain ${Rust_TOOLCHAIN} wasm32-wasi)

CPMAddPackage("gh:corrosion-rs/corrosion#be76480232216a64f65e3b1d9794d68cbac6c690")
string(TOLOWER ${Rust_CARGO_HOST_ARCH} HOST_ARCH)

0 comments on commit fa1247b

Please sign in to comment.