diff options
Diffstat (limited to 'src/wat-writer.cc')
-rw-r--r-- | src/wat-writer.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wat-writer.cc b/src/wat-writer.cc index b458eca1..a013717a 100644 --- a/src/wat-writer.cc +++ b/src/wat-writer.cc @@ -1496,6 +1496,11 @@ void WatWriter::WriteMemory(const Memory& memory) { WriteInlineExports(ExternalKind::Memory, memory_index_); WriteInlineImport(ExternalKind::Memory, memory_index_); WriteLimits(memory.page_limits); + if (memory.page_size != WABT_DEFAULT_PAGE_SIZE) { + WriteOpenSpace("pagesize"); + Writef("%u", memory.page_size); + WriteCloseSpace(); + } WriteCloseNewline(); memory_index_++; } |