diff options
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 75dae580..1481a78b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -408,6 +408,10 @@ else () -s EXPORTED_FUNCTIONS=\"@${EMSCRIPTEN_EXPORTED_JSON}\" -s RESERVED_FUNCTION_POINTERS=10 -s NO_EXIT_RUNTIME=1 + -s ALLOW_MEMORY_GROWTH=1 + -s ELIMINATE_DUPLICATE_FUNCTIONS=1 + -Oz + --llvm-lto 1 ) string(REPLACE ";" " " LIBWABT_LINK_FLAGS_STR "${LIBWABT_LINK_FLAGS}") |