solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 21e9ebb75b284b140b892f6f69a779d5277044d8 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Thu Feb 16 13:20:53 2023 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Feb 16 11:35:39 2023 +0000 Add comment about using WASM exceptions Change-Id: I402bf56b89b3a18f854331915f827f7512fb05e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147152 Tested-by: Tor Lillqvist <t...@collabora.com> Reviewed-by: Tor Lillqvist <t...@collabora.com> 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