From 2dc95d6a5dbe4e2e1a0fdb0ec93dbb1f807a326f Mon Sep 17 00:00:00 2001
From: ArthurSonzogni <sonzogniarthur@gmail.com>
Date: Sun, 12 Mar 2023 17:38:09 +0100
Subject: [PATCH] Tweak ftxui/example wasm configuration.

---
 examples/CMakeLists.txt | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index ecfa932f..78827080 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -17,11 +17,8 @@ add_subdirectory(component)
 add_subdirectory(dom)
 
 if (EMSCRIPTEN)
-  # 32MB should be enough to run all the examples, in debug mode.
-  target_link_options(component PUBLIC "SHELL: -s TOTAL_MEMORY=33554432")
-  target_link_options(component PUBLIC "SHELL: -s ASSERTIONS=1")
-  #string(APPEND CMAKE_EXE_LINKER_FLAGS " -s ALLOW_MEMORY_GROWTH=1")
-  #target_link_options(component PUBLIC "SHELL: -s ALLOW_MEMORY_GROWTH=1")
+  string(APPEND CMAKE_EXE_LINKER_FLAGS " -s ALLOW_MEMORY_GROWTH=1")
+  target_link_options(component PUBLIC "SHELL: -s ALLOW_MEMORY_GROWTH=1")
 
   get_property(EXAMPLES GLOBAL PROPERTY FTXUI::EXAMPLES)
   foreach(file
-- 
GitLab