This is an automated email from the ASF dual-hosted git repository. syfeng pushed a commit to branch test_all_cases_on_unity in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 288ad50c2251e49d665073a4fdad7908b4a73938 Author: tqchen <[email protected]> AuthorDate: Sat Jan 20 09:32:22 2024 -0500 [Unity][WEB] Temp disable wasm exception This PR temp disables wasm exception which requires latest version of nodejs. We can re-enable it after the wasm CI env finishes update. --- python/tvm/contrib/emcc.py | 4 +++- web/Makefile | 4 +++- web/package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python/tvm/contrib/emcc.py b/python/tvm/contrib/emcc.py index 73cb33dfcc..7f0b16683d 100644 --- a/python/tvm/contrib/emcc.py +++ b/python/tvm/contrib/emcc.py @@ -42,7 +42,9 @@ def create_tvmjs_wasm(output, objects, options=None, cc="emcc"): cmd += ["-O3"] cmd += ["-std=c++17"] cmd += ["--no-entry"] - cmd += ["-fwasm-exception"] + # temp disable for backward compact + # can enable after emsdk updates + # cmd += ["-fwasm-exception"] cmd += ["-s", "WASM_BIGINT=1"] cmd += ["-s", "ERROR_ON_UNDEFINED_SYMBOLS=0"] cmd += ["-s", "STANDALONE_WASM=1"] diff --git a/web/Makefile b/web/Makefile index bd5e6cbf2b..9ed041e829 100644 --- a/web/Makefile +++ b/web/Makefile @@ -27,7 +27,9 @@ all: dist/wasm/tvmjs_runtime.wasm dist/wasm/tvmjs_runtime.wasi.js src/tvmjs_runt EMCC = emcc -EMCC_CFLAGS = $(INCLUDE_FLAGS) -O3 -std=c++17 -Wno-ignored-attributes -fwasm-exceptions +EMCC_CFLAGS = $(INCLUDE_FLAGS) -O3 -std=c++17 -Wno-ignored-attributes + +# -fwasm-exceptions EMCC_LDFLAGS = --no-entry -s WASM_BIGINT=1 -s ALLOW_MEMORY_GROWTH=1 -s STANDALONE_WASM=1\ -s ERROR_ON_UNDEFINED_SYMBOLS=0 --pre-js emcc/preload.js diff --git a/web/package.json b/web/package.json index 2e8de05971..8a08be6d91 100644 --- a/web/package.json +++ b/web/package.json @@ -13,7 +13,7 @@ "build": "rollup -c", "lint": "eslint -c .eslintrc.json .", "typedoc": "typedoc src/index.ts --plugin typedoc-plugin-missing-exports", - "test": "node --experimental-wasm-eh node_modules/.bin/jest", + "test": "node node_modules/.bin/jest", "bundle": "npm run build && cp lib/index.js dist/index.js && cp lib/index.js dist/tvmjs.bundle.js", "example": "npm run bundle && node apps/node/example.js", "example:wasi": "npm run bundle && node --experimental-wasi-unstable-preview1 --experimental-wasm-bigint apps/node/wasi_example.js",
