mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
13 lines
376 B
Bash
Executable File
13 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Make LLD produce a binary that imports memory from the outside environment.
|
|
export RUSTFLAGS="-C link-arg=--import-memory"
|
|
|
|
cargo +nightly build --target=wasm32-unknown-unknown --release --no-default-features
|
|
|
|
for i in basic_add
|
|
do
|
|
wasm-gc target/wasm32-unknown-unknown/release/$i.wasm target/wasm32-unknown-unknown/release/$i.compact.wasm
|
|
done
|