From 3b07180665ff8ed726439b7069bcc5c3a3c02228 Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:44:19 -0500 Subject: [PATCH] export wasm memory --- tools/include/compiler_options.hpp.in | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/include/compiler_options.hpp.in b/tools/include/compiler_options.hpp.in index e94e8d57e2..0547701ce1 100644 --- a/tools/include/compiler_options.hpp.in +++ b/tools/include/compiler_options.hpp.in @@ -508,6 +508,7 @@ static void GetLdDefaults(std::vector& ldopts) { else ldopts.insert(ldopts.end(), { "-e", "apply" }); ldopts.insert(ldopts.end(), { "--only-export", "apply:function" }); + ldopts.insert(ldopts.end(), { "--only-export", "*:memory" }); } ldopts.emplace_back("-lc++"); ldopts.emplace_back("-lc");