From f8aa91ed0855d0715811b2f9a4f192f5e815cd83 Mon Sep 17 00:00:00 2001 From: Alexander Camuto Date: Wed, 6 Mar 2024 11:40:44 +0000 Subject: [PATCH] fix: windows compile --- src/execute.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/execute.rs b/src/execute.rs index af0bb520b..2f8fc7cc5 100644 --- a/src/execute.rs +++ b/src/execute.rs @@ -969,8 +969,8 @@ pub(crate) fn calibrate( continue; } } - - // drop the gag + + // drop the gag #[cfg(unix)] drop(_r); #[cfg(unix)] @@ -1695,7 +1695,7 @@ pub(crate) fn fuzz( let logrows = circuit.settings().run_args.logrows; info!("setting up tests"); - + #[cfg(unix)] let _r = Gag::stdout()?; let params = gen_srs::>(logrows); @@ -1713,6 +1713,7 @@ pub(crate) fn fuzz( let public_inputs = circuit.prepare_public_inputs(&data)?; let strategy = KZGSingleStrategy::new(¶ms); + #[cfg(unix)] std::mem::drop(_r); info!("starting fuzzing"); @@ -1903,6 +1904,7 @@ pub(crate) fn run_fuzz_fn( passed: &AtomicBool, ) { let num_failures = AtomicI64::new(0); + #[cfg(unix)] let _r = Gag::stdout().unwrap(); let pb = init_bar(num_runs as u64); @@ -1916,6 +1918,7 @@ pub(crate) fn run_fuzz_fn( pb.inc(1); }); pb.finish_with_message("Done."); + #[cfg(unix)] std::mem::drop(_r); info!( "num failures: {} out of {}",