From 8259e866d48470a514c79144e13ca549e678f3a6 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Wed, 17 Mar 2021 19:33:27 +0300 Subject: [PATCH] set custom stack size (#6) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d1ecab6..555153b 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ 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 @@ -24,7 +24,7 @@ build-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