Skip to content

Commit

Permalink
Fix wasm32-unknown-unknown support (#274)
Browse files Browse the repository at this point in the history
`XXH_STATIC_ASSERT` appears to already have a reasonable definition, and
defining it to `0` breaks uses of it.
  • Loading branch information
jbms authored May 24, 2024
1 parent e470f00 commit a2125e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
submodules: recursive

- name: Build
run: cargo build --verbose
run: cargo build --verbose --target wasm32-unknown-unknown
- name: Build with feature thin
run: cargo build --verbose --features thin
run: cargo build --verbose --features thin --target wasm32-unknown-unknown
1 change: 0 additions & 1 deletion zstd-safe/zstd-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ fn compile_zstd() {
cargo_print(&"rerun-if-changed=wasm-shim/string.h");

config.include("wasm-shim/");
config.define("XXH_STATIC_ASSERT", Some("0"));
}

// Some extra parameters
Expand Down

0 comments on commit a2125e3

Please sign in to comment.