mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-13 05:48:12 +00:00
Show error dialogs instead of aborting the page on trace load errors.
Exception catching was off by default in the web build, so the try/catch handlers around trace loading were dead code and any failure unwound through the page.
This commit is contained in:
@@ -358,6 +358,7 @@ if(NOT EMSCRIPTEN)
|
||||
endif()
|
||||
|
||||
if(EMSCRIPTEN)
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE -sDISABLE_EXCEPTION_CATCHING=0)
|
||||
target_link_options(${PROJECT_NAME} PRIVATE
|
||||
-pthread
|
||||
-sASSERTIONS=0
|
||||
@@ -369,6 +370,7 @@ if(EMSCRIPTEN)
|
||||
-sEXPORTED_FUNCTIONS=_main,_nativeOpenFile,_tracy_paste_clipboard
|
||||
-sEXPORTED_RUNTIME_METHODS=ccall
|
||||
-sENVIRONMENT=web,worker
|
||||
-sDISABLE_EXCEPTION_CATCHING=0
|
||||
"--pre-js;${CMAKE_CURRENT_LIST_DIR}/wasm/url_trace_pre.js"
|
||||
--preload-file embed.tracy
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user