diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index 111272e2..a89b5dfd 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -337,3 +337,8 @@ if(HAIKU) find_library(ROOT_LIBRARY root) target_link_libraries(VVVVVV ${BE_LIBRARY} ${ROOT_LIBRARY}) endif() +if(EMSCRIPTEN) + target_compile_options(VVVVVV PUBLIC -sFORCE_FILESYSTEM=1) + # 256MB is enough for everybody + target_link_libraries(VVVVVV -sFORCE_FILESYSTEM=1 -sTOTAL_MEMORY=256MB) +endif()