mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
wasm: add stack_bytes field to Env
This commit is contained in:
parent
11929a7b6d
commit
dd040d5f73
6 changed files with 10 additions and 3 deletions
|
@ -272,9 +272,7 @@ impl<'a> WasmBackend<'a> {
|
|||
}
|
||||
|
||||
pub fn finalize(mut self) -> (WasmModule<'a>, BitVec<usize>) {
|
||||
// TODO: get this from a CLI parameter with some default
|
||||
const STACK_SIZE: u32 = 1024 * 1024;
|
||||
self.set_memory_layout(STACK_SIZE);
|
||||
self.set_memory_layout(self.env.stack_bytes);
|
||||
self.export_globals();
|
||||
|
||||
self.maybe_call_host_main();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue