diff --git a/CMakeLists.txt b/CMakeLists.txt index 7693073..3889a22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,7 +137,7 @@ if (EMSCRIPTEN) "SHELL:--no-entry" "SHELL:-s WASM=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" ) target_include_directories(ragephoto-wasm PUBLIC