Skip to content

Commit

Permalink
update need_wasm_shim logic for wasm32-wasip1
Browse files Browse the repository at this point in the history
The `wasm32-wasi` target is being renamed to `wasm32-wasip1` and the
`wasm32-wasi` target will be removed in the future. It looks like the
shim will also be useful (required?) for `wasm32-wasip2`.
  • Loading branch information
Mrmaxmeier committed Jul 8, 2024
1 parent 6a47c02 commit 56b2969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zstd-safe/zstd-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn compile_zstd() {
// See: https://github.com/gyscos/zstd-rs/pull/209
let need_wasm_shim = !cfg!(feature = "no_wasm_shim")
&& env::var("TARGET").map_or(false, |target| {
target == "wasm32-unknown-unknown" || target == "wasm32-wasi"
target == "wasm32-unknown-unknown" || target.starts_with("wasm32-wasi")
});

if need_wasm_shim {
Expand Down

0 comments on commit 56b2969

Please sign in to comment.