From 7cd40a044e73c941a04de1a022e0ec70fcff9d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hillerstr=C3=B6m?= Date: Wed, 30 Oct 2024 16:18:06 +0100 Subject: [PATCH] Use stack-switching feature This patch should be good to go once the binaryen stack-switching patch has landed. --- make.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make.config b/make.config index f037497..68131cd 100644 --- a/make.config +++ b/make.config @@ -11,7 +11,7 @@ WASICC?=../wasi-sdk-22.0/bin/clang WASICC_FLAGS=--std=c17 -O3 -Wall -Wextra -Werror -DASYNCIFY_DEFAULT_STACK_SIZE=$(ASYNCIFY_DEFAULT_STACK_SIZE) # Wabt -WABTFX_FLAGS=--enable-multimemory --enable-exception-handling --enable-reference-types --enable-multivalue --enable-bulk-memory --enable-gc --enable-typed-continuations +WABTFX_FLAGS=--enable-multimemory --enable-exception-handling --enable-reference-types --enable-multivalue --enable-bulk-memory --enable-gc --enable-stack-switching ## Wasm optimiser WASM_OPT?=../binaryenfx/bin/wasm-opt @@ -40,7 +40,7 @@ WASMTIMEC=$(WASMTIME) compile WASMTIMEC_RUN=LD_PRELOAD=$(MIMALLOC) $(WASMTIME) --allow-precompiled -Wwasmfx-stack-size=$(DEFAULT_STACK_SIZE) -Wwasmfx-red-zone-size=0 # WasmFX enabled Wasmtime engine -WASMTIMEFX_FLAGS=-W=exceptions,function-references,typed-continuations +WASMTIMEFX_FLAGS=-W=exceptions,function-references,stack-switching WASMFXTIMEC=$(WASMTIMEC) $(WASMTIMEFX_FLAGS) WASMFXTIMEC_RUN=$(WASMTIMEC_RUN) $(WASMTIMEFX_FLAGS)