Skip to content

Commit

Permalink
fix CI errors in wasm-bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
google-yfyang committed Mar 4, 2025
1 parent 718b6fe commit e02edbe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
runner = 'cargo run -p wasm-bindgen-cli --bin wasm-bindgen-test-runner --'

[build]

[target.'cfg(all(target_arch = "wasm32", target_os = "emscripten"))']
rustflags = [
"-Cllvm-args=-enable-emscripten-cxx-exceptions=0",
"-Clink-arg=-Wno-undefined",
"-Crelocation-model=static",
"-Cllvm-args=-enable-emscripten-cxx-exceptions=0",
"-Clink-arg=-Wno-undefined",
"-Crelocation-model=static",
]
2 changes: 1 addition & 1 deletion crates/cli-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ version = "0.2.100"
anyhow = "1.0"
base64 = "0.22"
log = "0.4"
regex = "1"
rustc-demangle = "0.1.13"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = "3.0"
walrus = { version = "0.23", features = ['parallel'] }
regex = "1"
wasm-bindgen-externref-xform = { path = '../externref-xform', version = '=0.2.100' }
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.100' }
wasm-bindgen-shared = { path = "../shared", version = '=0.2.100' }
Expand Down
4 changes: 2 additions & 2 deletions src/convert/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl WasmAbi for i128 {

#[inline]
fn join(low: u64, high: u64, _: (), _: ()) -> Self {
((high as u128) << 64 | low as u128) as i128
(((high as u128) << 64) | low as u128) as i128
}
}
impl WasmAbi for u128 {
Expand All @@ -62,7 +62,7 @@ impl WasmAbi for u128 {

#[inline]
fn join(low: u64, high: u64, _: (), _: ()) -> Self {
(high as u128) << 64 | low as u128
((high as u128) << 64) | low as u128
}
}

Expand Down

0 comments on commit e02edbe

Please sign in to comment.