From df8b9536b1b351a5f8d3809405a89aa5df79aee9 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 29 Sep 2022 21:01:54 +0800 Subject: ... --- src/common/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/common/CMakeLists.txt') 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 -- cgit v1.2.3