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 ad552cba4b
commit 96fb93b09c
13 files changed
+25 -8

No files matched your search