Commit 776b61ed authored by Sergey Pepyakin's avatar Sergey Pepyakin Committed by Gav Wood
Browse files

Fix wasm build (#102)

* Reserve pages for heap at initialization time

Since it is freshly allocated memory it won't collide with stack, data or whatever else.

* Compile all wasm files with LTO.

Modules compiled without LTO contain undesired imports and outright invalid (e.g. type mismatches inside the wasm).
parent dc57f768
......@@ -29,6 +29,7 @@ std = [
panic = "abort"
lto = true
members = []
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