cfg out benches for wasm32

This commit is contained in:
Bennet Bleßmann
2024-02-16 23:43:22 +01:00
parent e5ad70c093
commit 7837c76c74
3 changed files with 21 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ impl PrologBenchmark {
machine
}
#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
pub fn setup(&self) -> impl FnMut() -> QueryResolution {
let mut machine = self.make_machine();
let query = self.query;