diff --git a/cmake/Platform/Emscripten.cmake b/cmake/Platform/Emscripten.cmake index 160f2e51..93dfd202 100644 --- a/cmake/Platform/Emscripten.cmake +++ b/cmake/Platform/Emscripten.cmake @@ -10,7 +10,7 @@ set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE) # FIXME(emscripten): Suppress non-c-typedef-for-linkage warnings in solvespace.h add_compile_options(-Wno-non-c-typedef-for-linkage) - +add_link_options(-s EXPORTED_RUNTIME_METHODS=[allocate]) # Enable optimization. Workaround for "too many locals" error when runs on browser. if(CMAKE_BUILD_TYPE STREQUAL Release)