Skip to content

Commit 09030ec

Browse files
committed
fix: exceptions when compiling with emscripten
1 parent 43b1c6c commit 09030ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ else()
5858
set(static_default ON)
5959
endif()
6060

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

0 commit comments

Comments
 (0)