From e767e6b8c92277aa00fdc57996bb857b240ad31b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 20 Dec 2024 13:16:36 -0800 Subject: [PATCH] Fix standalone build of wasmtime-cli-flags --- crates/cli-flags/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/cli-flags/src/lib.rs b/crates/cli-flags/src/lib.rs index f819f8d544ca..13203547421f 100644 --- a/crates/cli-flags/src/lib.rs +++ b/crates/cli-flags/src/lib.rs @@ -712,8 +712,10 @@ impl CommonOptions { if let Some(enable) = self.debug.address_map { config.generate_address_map(enable); } - if let Some(enable) = self.opts.memory_init_cow { - config.memory_init_cow(enable); + match_feature! { + ["signals-based-traps" : self.opts.memory_init_cow] + enable => config.memory_init_cow(enable), + _ => err, } match_feature! { ["signals-based-traps" : self.opts.signals_based_traps]