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 ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
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