Pin the wasm target in the build scripts (#799)

This commit is contained in:
David Leung authored and GitHub committed 2026-11-01 16:46:55 -07:00
1 parent cd431186b6
commit 53e766b2a9
2 files changed
+2

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ execSync("wasm-pack build --target bundler", {
stdio: "inherit",
env: {
...process.env,
CARGO_BUILD_TARGET: "wasm32-unknown-unknown",
RUSTFLAGS: `--remap-path-prefix=${cargoHome}=/cargo --remap-path-prefix=${sysroot}=/rustc`,
},
});
+1
View File
@@ -55,6 +55,7 @@ execSync("wasm-pack build --target bundler", {
cwd: __dirname,
env: {
...process.env,
CARGO_BUILD_TARGET: "wasm32-unknown-unknown",
CC_wasm32_unknown_unknown: clang,
AR_wasm32_unknown_unknown: fs.existsSync(ar)
? ar