From 0811e198359151bbc3a680c12a36daa2948cd24b Mon Sep 17 00:00:00 2001 From: balintkissdev Date: Tue, 23 Mar 2021 20:16:26 +0100 Subject: [PATCH] Disable exceptions for Emscripten build --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fa354d..d57002d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,11 +65,9 @@ if(EMSCRIPTEN) ) target_compile_options(${PROJECT_NAME} PRIVATE -O3 - -fexceptions "SHELL: -s USE_SDL=2" ) target_link_options(${PROJECT_NAME} PRIVATE - "SHELL: -s DISABLE_EXCEPTION_CATCHING=0" "SHELL: -s USE_SDL=2" --preload-file "resources" --shell-file "${PROJECT_SOURCE_DIR}/src/shell_minimal.html"