mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
set export-table link arg (#115)
This commit is contained in:
committed by
Bastian Köcher
parent
2b0dbd2d77
commit
c363077404
@@ -6,7 +6,7 @@ if cargo --version | grep -q "nightly"; then
|
|||||||
else
|
else
|
||||||
CARGO_CMD="cargo +nightly"
|
CARGO_CMD="cargo +nightly"
|
||||||
fi
|
fi
|
||||||
$CARGO_CMD build --target=wasm32-unknown-unknown --release
|
RUSTFLAGS="-C link-arg=--export-table" $CARGO_CMD build --target=wasm32-unknown-unknown --release
|
||||||
for i in polkadot_runtime
|
for i in polkadot_runtime
|
||||||
do
|
do
|
||||||
wasm-gc target/wasm32-unknown-unknown/release/$i.wasm target/wasm32-unknown-unknown/release/$i.compact.wasm
|
wasm-gc target/wasm32-unknown-unknown/release/$i.wasm target/wasm32-unknown-unknown/release/$i.compact.wasm
|
||||||
|
|||||||
BIN
Binary file not shown.
Binary file not shown.
@@ -2,7 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Make LLD produce a binary that imports memory from the outside environment.
|
# Make LLD produce a binary that imports memory from the outside environment.
|
||||||
export RUSTFLAGS="-C link-arg=--import-memory -C lto=fat -C panic=abort"
|
export RUSTFLAGS="-C link-arg=--import-memory,--export-table -C lto=fat -C panic=abort"
|
||||||
|
|
||||||
for i in adder
|
for i in adder
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user