We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c48653 commit a076222Copy full SHA for a076222
crates/wasmtime/src/config.rs
@@ -2236,11 +2236,9 @@ impl Config {
2236
bail!("wmemcheck (memory checker) was requested but is not enabled in this build");
2237
}
2238
2239
- #[cfg(feature = "gc")]
2240
- if self.enabled_features.contains(WasmFeatures::EXCEPTIONS)
2241
- && self.disabled_features.contains(WasmFeatures::GC)
2242
- {
2243
- bail!("exceptions support requires garbage collection (GC) to be enabled");
+ #[cfg(not(feature = "gc"))]
+ if self.enabled_features.contains(WasmFeatures::EXCEPTIONS) {
+ bail!("exceptions support requires garbage collection (GC) to be enabled in the build");
2244
2245
2246
let mut tunables = Tunables::default_for_target(&self.compiler_target())?;
0 commit comments