mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
Pin the wasm target in the build scripts (#799)
This commit is contained in:
1 parent
cd431186b6
commit
53e766b2a9
2 files changed
+2
No files matched your search
@@ -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`,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user