diff options
author | Tor Lillqvist <tml@collabora.com> | 2023-02-16 13:20:53 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2023-02-16 11:35:39 +0000 |
commit | 21e9ebb75b284b140b892f6f69a779d5277044d8 (patch) | |
tree | 9b333c2d4bef99efc3c8207c9aedc6a161315506 /solenv | |
parent | 9b8f3eebc62f1dd20d473b9977d025a908febccf (diff) |
Add comment about using WASM exceptions
Change-Id: I402bf56b89b3a18f854331915f827f7512fb05e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147152
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk index fa7b51e54cc4..4ae925daf5d1 100644 --- a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk +++ b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk @@ -32,6 +32,10 @@ gb_EMSCRIPTEN_QTDEFS := -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO gb_Executable_EXT := .html ifeq ($(ENABLE_WASM_EXCEPTIONS),TRUE) +# Note that to really use WASM exceptions everywhere, you most probably want to also use +# CC=emcc -pthread -s USE_PTHREADS=1 -fwasm-exceptions -s SUPPORT_LONGJMP=wasm +# and CXX=em++ -pthread -s USE_PTHREADS=1 -fwasm-exceptions -s SUPPORT_LONGJMP=wasm +# in your autogen.input. Otherwise these flags won't propagate to all external libraries, I fear. gb_EMSCRIPTEN_EXCEPT = -fwasm-exceptions -s SUPPORT_LONGJMP=wasm gb_EMSCRIPTEN_CPPFLAGS += -s SUPPORT_LONGJMP=wasm else |