Skip to content

Commit

Permalink
set custom stack size (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Mar 17, 2021
1 parent ef19e05 commit 8259e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ build-node-debug-%:

.PHONY: build-wasm
build-wasm:
cargo build --package secp256k1-wasm --target wasm32-unknown-unknown --release
RUSTFLAGS="-C link-args=-zstack-size=655360" cargo build --package secp256k1-wasm --target wasm32-unknown-unknown --release
cp -f target/wasm32-unknown-unknown/release/secp256k1_wasm.wasm lib/secp256k1.wasm
wasm-opt --strip-debug --strip-producers --output lib/secp256k1.wasm lib/secp256k1.wasm
node util/wasm-strip.js lib/secp256k1.wasm
wasm-opt -O4 --output lib/secp256k1.wasm lib/secp256k1.wasm

.PHONY: build-wasm-debug
build-wasm-debug:
cargo build --package secp256k1-wasm --target wasm32-unknown-unknown
RUSTFLAGS="-C link-args=-zstack-size=655360" cargo build --package secp256k1-wasm --target wasm32-unknown-unknown
cp -f target/wasm32-unknown-unknown/debug/secp256k1_wasm.wasm lib/secp256k1.wasm

.PHONY: clean
Expand Down

0 comments on commit 8259e86

Please sign in to comment.