Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve makefile #77

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading