Fix wasm32-unknown-unknown support (#274)

`XXH_STATIC_ASSERT` appears to already have a reasonable definition, and
defining it to `0` breaks uses of it.
This commit is contained in:
Jeremy Maitin-Shepard 2024-05-24 11:01:57 -07:00 committed by GitHub
parent e470f0021d
commit a2125e3ebc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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