Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
ca52fe67
Commit
ca52fe67
authored
Jan 28, 2019
by
thiolliere
Committed by
Bastian Köcher
Jan 28, 2019
Browse files
set export-table link arg (#115)
parent
11d79181
Pipeline
#29307
passed with stages
in 13 minutes
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
runtime/wasm/build.sh
View file @
ca52fe67
...
...
@@ -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
...
...
runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.compact.wasm
View file @
ca52fe67
No preview for this file type
runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.wasm
View file @
ca52fe67
No preview for this file type
test-parachains/build.sh
View file @
ca52fe67
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment