Skip to content

Commit

Permalink
Improve makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Feb 3, 2024
1 parent 0a8cfa7 commit 0a22c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ pkg: src/ Cargo.toml
cp wrong-package.md pkg/README.md

pkg_multicore: src/ Cargo.toml
rustup override set nightly-2023-03-28;
wasm-pack build --target web --out-dir pkg_multicore -- --config "build-std = [\"panic_abort\", \"std\"]" --features="multicore";
RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals' \
rustup run nightly-2023-03-28 \
wasm-pack build --weak-refs --out-dir "pkg_multicore" --target web -- --features="multicore" -Z build-std=panic_abort,std
sed -i 's/pivx-shield-rust/pivx-shield-rust-multicore/' pkg_multicore/package.json
sed -i 's/pivx_shield_rust_bg.wasm/*/' pkg_multicore/package.json
rustup override set stable;
cp wrong-package.md pkg_multicore/README.md

js/README.md: README.md
Expand Down Expand Up @@ -43,3 +43,4 @@ clean:
-rm -rf pkg_multicore/
-rm -rf js/node_modules
-rm js/pivx_shield.d.ts

0 comments on commit 0a22c19

Please sign in to comment.