Skip to content

Commit

Permalink
Use stack-switching feature
Browse files Browse the repository at this point in the history
This patch should be good to go once the binaryen stack-switching
patch has landed.
  • Loading branch information
dhil committed Oct 30, 2024
1 parent db338e7 commit 7cd40a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make.config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 7cd40a0

Please sign in to comment.