From 7baf143a6bd5e6df366e813083c1667644f688c9 Mon Sep 17 00:00:00 2001 From: leo60228 Date: Wed, 31 Mar 2021 14:27:23 -0400 Subject: [PATCH] Add necessary Emscripten linker flags --- desktop_version/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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()