Skip to content

Commit 9170118

Browse files
committed
try remove " -sWASM_LEGACY_EXCEPTIONS=0"
1 parent aa93d18 commit 9170118

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake/adjust_global_compile_flags.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")

tools/python/util/vcpkg_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)