diff options
author | crupest <crupest@outlook.com> | 2022-09-29 21:01:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-09-29 21:01:54 +0800 |
commit | df8b9536b1b351a5f8d3809405a89aa5df79aee9 (patch) | |
tree | 6dac3f5ea8ef0a0178fadd5e07ccc0f23e1f3ece /src/common/CMakeLists.txt | |
parent | 65f920e9b88dc89124b286d82668ece9178a665f (diff) | |
download | cru-df8b9536b1b351a5f8d3809405a89aa5df79aee9.tar.gz cru-df8b9536b1b351a5f8d3809405a89aa5df79aee9.tar.bz2 cru-df8b9536b1b351a5f8d3809405a89aa5df79aee9.zip |
...
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r-- | src/common/CMakeLists.txt | 10 |
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 |