Skip to content

Commit c96505e

Browse files
committed
fix: exceptions when compiling with emscripten
1 parent 20d7275 commit c96505e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ else()
5757
set(static_default ON)
5858
endif()
5959

60+
if(EMSCRIPTEN)
61+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -sNO_DISABLE_EXCEPTION_CATCHING ")
62+
endif()
63+
6064
option(BUILD_STATIC_DEPS "Build all dependencies statically rather than trying to link to them on the system" ${static_default})
6165
option(STATIC_BUNDLE "Build a single static .a containing everything (both code and dependencies)" ${static_default})
6266

0 commit comments

Comments
 (0)