Skip to content

Commit

Permalink
Fix standalone build of wasmtime-cli-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Dec 20, 2024
1 parent dd8b4e8 commit e767e6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/cli-flags/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e767e6b

Please sign in to comment.