aboutsummaryrefslogtreecommitdiff
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r--src/common/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 119bbbee..fb2dd471 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -38,6 +38,16 @@ if (APPLE)
)
endif()
+if (EMSCRIPTEN)
+ target_compile_options(CruBase PUBLIC "-fwasm-exceptions")
+ target_link_options(CruBase PUBLIC "-fwasm-exceptions")
+
+ target_sources(CruBase PRIVATE
+ platform/web/WebException.cpp
+ platform/web/WebFileStream.cpp
+ )
+endif()
+
if (WIN32)
target_sources(CruBase PRIVATE
platform/win/BridgeComStream.cpp