Commit ca52fe67 authored by thiolliere's avatar thiolliere Committed by Bastian Köcher
Browse files

set export-table link arg (#115)

parent 11d79181
Pipeline #29307 passed with stages
in 13 minutes
......@@ -6,7 +6,7 @@ if cargo --version | grep -q "nightly"; then
else
CARGO_CMD="cargo +nightly"
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
do
wasm-gc target/wasm32-unknown-unknown/release/$i.wasm target/wasm32-unknown-unknown/release/$i.compact.wasm
......
......@@ -2,7 +2,7 @@
set -e
# 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
do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment