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 5a30f38992
commit 521a1abf89
3 changed files with 1 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@ std = [
[profile.release]
panic = "abort"
lto = true
[workspace]
members = []