Emscripten: add _malloc to EXPORTED_FUNCTIONS

This commit is contained in:
Syping 2023-01-05 16:03:47 +01:00
parent 54912a63ab
commit 4b9637e0fd

View file

@ -137,7 +137,7 @@ if (EMSCRIPTEN)
"SHELL:--no-entry" "SHELL:--no-entry"
"SHELL:-s WASM=1" "SHELL:-s WASM=1"
"SHELL:-s ALLOW_MEMORY_GROWTH=1" "SHELL:-s ALLOW_MEMORY_GROWTH=1"
"SHELL:-s EXPORTED_FUNCTIONS=_free" "SHELL:-s EXPORTED_FUNCTIONS=_free,_malloc"
"SHELL:-s EXPORTED_RUNTIME_METHODS=ccall,cwrap" "SHELL:-s EXPORTED_RUNTIME_METHODS=ccall,cwrap"
) )
target_include_directories(ragephoto-wasm PUBLIC target_include_directories(ragephoto-wasm PUBLIC