Skip to content

Commit 87fd9a7

Browse files
committed
build: avoid a single wasm compilation for all contracts
1 parent 77f9314 commit 87fd9a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ rustup target add wasm32-unknown-unknown
5959

6060
[tasks.wasm]
6161
args = [
62+
"hack",
6263
"build",
6364
"--release",
6465
"--lib",
@@ -67,7 +68,7 @@ args = [
6768
"--locked",
6869
]
6970
command = "cargo"
70-
dependencies = ["install-wasm"]
71+
dependencies = ["install-wasm", "install-cargo-hack"]
7172
env = { RUSTFLAGS = "-C link-arg=-s" }
7273

7374
[tasks.schema]
@@ -537,6 +538,9 @@ if ! [ -x "$(command -v ffizer)" ]; then
537538
fi
538539
'''
539540

541+
[tasks.install-cargo-hack]
542+
install_crate = { crate_name = "cargo-hack" }
543+
540544
[config]
541545
default_to_workspace = false
542546
min_version = "0.36.3"

0 commit comments

Comments
 (0)