From 1d068f70d0264cb179db6d8c6f38349870f816a0 Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Wed, 6 Mar 2024 13:47:44 -0500 Subject: [PATCH] [skip ci] Fix wasm exception flag (#16683) This PR fixes the wasm exceptions flag in emcc compile export. --- python/tvm/contrib/emcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tvm/contrib/emcc.py b/python/tvm/contrib/emcc.py index d6cdf22a22fa8..fac2043215865 100644 --- a/python/tvm/contrib/emcc.py +++ b/python/tvm/contrib/emcc.py @@ -42,7 +42,7 @@ def create_tvmjs_wasm(output, objects, options=None, cc="emcc"): cmd += ["-O3"] cmd += ["-std=c++17"] cmd += ["--no-entry"] - cmd += ["-fwasm-exception"] + cmd += ["-fwasm-exceptions"] cmd += ["-s", "WASM_BIGINT=1"] cmd += ["-s", "ERROR_ON_UNDEFINED_SYMBOLS=0"] cmd += ["-s", "STANDALONE_WASM=1"]