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).
This commit is contained in:
Sergey Pepyakin
2018-03-21 10:44:14 +03:00
committed by Gav Wood
parent ad552cba4b
commit 96fb93b09c
13 changed files with 25 additions and 8 deletions
@@ -29,6 +29,7 @@ std = [
[profile.release]
panic = "abort"
lto = true
[workspace]
members = []