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 authored and Gav Wood committed 2018-03-21 15:44:14 +08:00
1 parent 5a30f38992
commit 521a1abf89
3 files changed
+1

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ std = [
[profile.release]
panic = "abort"
lto = true
[workspace]
members = []
Binary file not shown.