diff --git a/lz4-sys/build.rs b/lz4-sys/build.rs index 025b7083c..a4b43edfb 100644 --- a/lz4-sys/build.rs +++ b/lz4-sys/build.rs @@ -40,7 +40,9 @@ fn run() -> Result<(), Box> { } } } - let need_wasm_shim = target == "wasm32-unknown-unknown" || target.starts_with("wasm32-wasi"); + let need_wasm_shim = target == "wasm32-unknown-unknown" + || target.starts_with("wasm32-wasi") + || target == "wasm32-unknown-emscripten"; if need_wasm_shim { println!("cargo:rerun-if-changed=wasm-shim/stdlib.h");