From d6f3ae95fc2edf2362862f7190b63dd3eb93b25f Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Wed, 8 Nov 2023 19:00:27 -0800 Subject: [PATCH] Revert "chore(runtime) build Wasmtime with 'posix-signals-on-macos' on macOS" This reverts commit e52df5b7a69a5e64e85dfad02a7e9167d2a8c912. --- util/runtime.sh | 12 ------------ util/runtimes/wasmtime.sh | 5 ----- 2 files changed, 17 deletions(-) diff --git a/util/runtime.sh b/util/runtime.sh index 5a49d36c7..806ef819e 100755 --- a/util/runtime.sh +++ b/util/runtime.sh @@ -145,18 +145,6 @@ if check_target "$TARGET_DIR"; then exit 0 fi -# overrides - -case $OSTYPE in - darwin*) - if [[ "$RUNTIME" = "wasmtime" ]]; then - # must be built with the 'posix-signals-on-macos' feature - notice "installing wasmtime on macOS, forcing 'build' mode" - MODE="build" - fi - ;; -esac - notice "installing $RUNTIME in $TARGET_DIR..." BUILD_SCRIPT=$NGX_WASM_DIR/util/runtimes/$RUNTIME.sh diff --git a/util/runtimes/wasmtime.sh b/util/runtimes/wasmtime.sh index 0b906c6a1..a7eca2ef0 100755 --- a/util/runtimes/wasmtime.sh +++ b/util/runtimes/wasmtime.sh @@ -108,11 +108,6 @@ build_wasmtime() { cargo_target_dir="target/release" fi - if [ "$(uname -s)" = "Darwin" ]; then - # See https://github.com/bytecodealliance/wasmtime/issues/6785 - args+="--features wasmtime/posix-signals-on-macos" - fi - if [ "$clean" = "clean" -a -d $cargo_target_dir ]; then rm -rf $cargo_target_dir fi