diff --git a/Makefile b/Makefile index b4e53c6..e8cc157 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ WASMFX_PRESERVE_SHADOW_STACK?=1 WASMFX_CONT_SHADOW_STACK_SIZE?=65536 MODE?=release VERBOSE?=0 -ASYNCIFY=../benchfx/binaryenfx/bin/wasm-opt --enable-exception-handling --enable-reference-types --enable-multivalue --enable-bulk-memory --enable-gc --enable-typed-continuations -O2 --asyncify +ASYNCIFY=../benchfx/binaryenfx/bin/wasm-opt --enable-exception-handling --enable-reference-types --enable-multivalue --enable-bulk-memory --enable-gc --enable-stack-switching -O2 --asyncify WASICC=../benchfx/wasi-sdk-22.0/bin/clang WASM_INTERP=../spec/interpreter/wasm -WASM_MERGE=../benchfx/binaryenfx/bin/wasm-merge --enable-multimemory --enable-exception-handling --enable-reference-types --enable-multivalue --enable-bulk-memory --enable-gc --enable-typed-continuations +WASM_MERGE=../benchfx/binaryenfx/bin/wasm-merge --enable-multimemory --enable-exception-handling --enable-reference-types --enable-multivalue --enable-bulk-memory --enable-gc --enable-stack-switching COMMON_FLAGS=--std=c17 -Wall -Wextra -Werror -Wpedantic -Wno-strict-prototypes -O3 -I inc -I vendor/fiber-c/inc -DMAX_CONNECTIONS=$(MAX_CONNECTIONS) ifeq ($(MODE), debug) COMMON_FLAGS:=$(COMMON_FLAGS) -DDEBUG -g -ftrapv -fno-split-stack -fsanitize-trap -fstack-protector diff --git a/examples/httpserver/driver.c b/examples/httpserver/driver.c index cf233bf..ea3c9f3 100644 --- a/examples/httpserver/driver.c +++ b/examples/httpserver/driver.c @@ -35,7 +35,7 @@ int main(int argc, const char **argv) { #endif wasmtime_config_wasm_function_references_set(config, true); wasmtime_config_wasm_exceptions_set(config, true); - wasmtime_config_wasm_typed_continuations_set(config, true); + wasmtime_config_wasm_stack_switching_set(config, true); wasm_engine_t *engine = wasm_engine_new_with_config(config); assert(engine != NULL); wasmtime_store_t *store = wasmtime_store_new(engine, NULL, NULL);