wasm: set correct exceptions flag
Emscripten supports two exception types: -fexceptions: Emscripten JS-based exceptions -fwasm-exceptions: WebAssembly (native) exceptions These are mutually incompatible and a program should only use one type. Set exceptions flag based on configure option to make this happen. Task-number: QTBUG-129747 Change-Id: I7e80a676aebcfea81f07431df7d50c234b0e3d4d Reviewed-by: Lorn Potter <lorn.potter@qt.io>
This commit is contained in:
parent
75133e0222
commit
48859317a6
@ -389,6 +389,13 @@ function(qt_internal_add_exceptions_flags)
|
||||
# this hack since some unknown MSVC version.
|
||||
set(enable_flag "${enable_flag}" "/d2FH4")
|
||||
endif()
|
||||
elseif(WASM)
|
||||
# Use native WebAssembly exceptions if enabled
|
||||
if(QT_FEATURE_wasm_exceptions)
|
||||
set(enable_flag "-fwasm-exceptions")
|
||||
else()
|
||||
set(enable_flag "-fexceptions")
|
||||
endif()
|
||||
else()
|
||||
set(enable_flag "-fexceptions")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user