Set NO_EXCEPTIONS on executables on wasm
This reflects the true state of exceptions on WASM, which are always disabled (DISABLE_EXCEPTION_CATCHING is always set with 1). Change-Id: I7b681846159caf61f291f78a7b4ddf5260dc341f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
aee64bbe13
commit
a5205d983b
@ -136,7 +136,12 @@ function(qt_internal_add_executable name)
|
||||
MACOSX_BUNDLE "${arg_GUI}"
|
||||
)
|
||||
|
||||
qt_internal_set_exceptions_flags("${name}" ${arg_EXCEPTIONS})
|
||||
if(WASM)
|
||||
# WASM unconditionally sets DISABLE_EXCEPTION_CATCHING=1
|
||||
qt_internal_set_exceptions_flags("${name}" NO_EXCEPTIONS)
|
||||
else()
|
||||
qt_internal_set_exceptions_flags("${name}" ${arg_EXCEPTIONS})
|
||||
endif()
|
||||
|
||||
if(WASM)
|
||||
qt_internal_wasm_add_finalizers("${name}")
|
||||
|
Loading…
Reference in New Issue
Block a user