From 365b30c48c9eca783c9076ea82d3456bfad7b025 Mon Sep 17 00:00:00 2001 From: Tyler Rockwood Date: Thu, 12 Oct 2023 12:20:00 -0500 Subject: [PATCH] cmake: update wasmtime Signed-off-by: Tyler Rockwood --- cmake/dependencies.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 86928c4681513..b76c3bbfae58a 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -89,14 +89,14 @@ fetch_dep(hdrhistogram REPO https://github.com/HdrHistogram/HdrHistogram_c TAG 0.11.5) +list(APPEND WASMTIME_USER_CARGO_BUILD_OPTIONS --no-default-features) +list(APPEND WASMTIME_USER_CARGO_BUILD_OPTIONS --features=async) + # We need submodules for wasmtime to compile FetchContent_Declare( wasmtime GIT_REPOSITORY https://github.com/bytecodealliance/wasmtime - GIT_TAG b77b407b25c3c158be209b8df6d9054ac6e43203 - # Remove the features we don't use. - PATCH_COMMAND - sed -i "s/default \\\\= \\\\['jitdump', 'wat', 'wasi', 'cache', 'parallel\\\\-compilation', 'async'\\\\]/default = ['async']/g" crates/c-api/Cargo.toml + GIT_TAG e6ff84119a94427d9467a25e82fdf892682f9e10 GIT_PROGRESS TRUE USES_TERMINAL_DOWNLOAD TRUE OVERRIDE_FIND_PACKAGE