Add option for exception catching in wasm
- Adds `VTK_WEBASSEMBLY_EXCEPTIONS` cmake setting to enable exceptions at compile+link time with `-fexceptions`. - This setting will allow the C++ unit tests to print additional stack traces when an uncaught exception is thrown, at the expense of greater binary size and slower execution. - The `ENABLE_EXCEPTION_CATCHING` option requires a list of functions from which exceptions may be thrown. This commit allows all functions to throw exception catching with `DISABLE_EXCEPTION_CATCHING=0` as we cannot know all possible functions that could throw exceptions.
Showing
- CMake/vtkCompilerPlatformFlags.cmake 10 additions, 0 deletionsCMake/vtkCompilerPlatformFlags.cmake
- CMake/vtkEmscripten.cmake 2 additions, 1 deletionCMake/vtkEmscripten.cmake
- Documentation/docs/advanced/build_wasm_emscripten.md 5 additions, 0 deletionsDocumentation/docs/advanced/build_wasm_emscripten.md
- Documentation/docs/build_instructions/build_settings.md 4 additions, 1 deletionDocumentation/docs/build_instructions/build_settings.md
- Documentation/release/dev/add-exception-support-for-wasm-builds.md 3 additions, 0 deletions...tion/release/dev/add-exception-support-for-wasm-builds.md
- Testing/ExternalWasm/CMakeLists.txt 1 addition, 1 deletionTesting/ExternalWasm/CMakeLists.txt
- Testing/WebAssembly/templates/index.html 7 additions, 0 deletionsTesting/WebAssembly/templates/index.html
Please register or sign in to comment