From 78faf0cb080a5e534a6be1a950cdefb7ee90bee8 Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Thu, 26 Sep 2024 13:15:45 +0200 Subject: [PATCH] Add wasm-shim for emscripten target (#51) --- lz4-sys/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");