Skip to content

Commit 7e896c9

Browse files
committed
Enforce that debug_instrumentation can only be enabled when feature is enabled.
1 parent a04c7c5 commit 7e896c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/wasmtime/src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,6 +2339,10 @@ impl Config {
23392339
None
23402340
};
23412341

2342+
if !cfg!(feature = "debug") && tunables.debug_instrumentation {
2343+
bail!("debug instrumentation support was disabled at compile time");
2344+
}
2345+
23422346
Ok((tunables, features))
23432347
}
23442348

0 commit comments

Comments
 (0)