aboutsummaryrefslogtreecommitdiff
path: root/cmake/platforms/emscripten.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/platforms/emscripten.cmake')
-rw-r--r--cmake/platforms/emscripten.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/platforms/emscripten.cmake b/cmake/platforms/emscripten.cmake
index 2ddb445..ac7a739 100644
--- a/cmake/platforms/emscripten.cmake
+++ b/cmake/platforms/emscripten.cmake
@@ -41,6 +41,7 @@ list(TRANSFORM emcc_export_list APPEND \")
string(JOIN "," emcc_export_string ${emcc_export_list})
set(CMAKE_C_LINK_FLAGS "\
-s ALLOW_MEMORY_GROWTH=1 \
+-s ENVIRONMENT=web \
-s EXPORTED_FUNCTIONS='[${emcc_export_string}]' \
-s EXPORTED_RUNTIME_METHODS='[cwrap]' \
-s STRICT_JS=1")