File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
4747
4848 # Enable WebAssembly exception catching.
4949 if (onnxruntime_ENABLE_WEBASSEMBLY_NATIVE_EH)
50- string (APPEND CMAKE_C_FLAGS " -fwasm-exceptions -s WASM_LEGACY_EXCEPTIONS=0 " )
51- string (APPEND CMAKE_CXX_FLAGS " -fwasm-exceptions -s WASM_LEGACY_EXCEPTIONS=0 " )
50+ string (APPEND CMAKE_C_FLAGS " -fwasm-exceptions" )
51+ string (APPEND CMAKE_CXX_FLAGS " -fwasm-exceptions" )
5252 elseif (onnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING)
5353 string (APPEND CMAKE_C_FLAGS " -s DISABLE_EXCEPTION_CATCHING=0" )
5454 string (APPEND CMAKE_CXX_FLAGS " -s DISABLE_EXCEPTION_CATCHING=0" )
Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ def generate_vcpkg_triplets_for_emscripten(
576576 # Wasm Exception Catching Runtime (-s flag, apply to Base and Linker flags)
577577 exception_catching_flag = ""
578578 if enable_wasm_eh :
579- exception_catching_flag = "-fwasm-exceptions -sWASM_LEGACY_EXCEPTIONS=0 "
579+ exception_catching_flag = "-fwasm-exceptions"
580580 elif enable_wasm_exception_catching :
581581 exception_catching_flag = "-sDISABLE_EXCEPTION_CATCHING=0"
582582 else :
You can’t perform that action at this time.
0 commit comments