emscripten: Export _malloc

This commit is contained in:
kichikuou
2023-02-25 15:58:12 +09:00
parent 50120d32ce
commit 2c2ea6d28b
+1
View File
@@ -56,6 +56,7 @@ elseif (EMSCRIPTEN)
"SHELL:-s ALLOW_MEMORY_GROWTH=1"
"SHELL:-s NO_EXIT_RUNTIME=1"
"SHELL:-s ASYNCIFY_ADD=NACT::execute()"
"SHELL:-s EXPORTED_FUNCTIONS=_main,_malloc"
"SHELL:-s EXPORTED_RUNTIME_METHODS=getValue,addRunDependency,removeRunDependency")
else() # NOT (ANDROID OR EMSCRIPTEN)