Skip to content

Commit

Permalink
fix: windows compile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto committed Mar 6, 2024
1 parent a59e378 commit f8aa91e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,8 @@ pub(crate) fn calibrate(
continue;
}
}
// drop the gag

// drop the gag
#[cfg(unix)]
drop(_r);
#[cfg(unix)]
Expand Down Expand Up @@ -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::<KZGCommitmentScheme<Bn256>>(logrows);

Expand All @@ -1713,6 +1713,7 @@ pub(crate) fn fuzz(
let public_inputs = circuit.prepare_public_inputs(&data)?;

let strategy = KZGSingleStrategy::new(&params);
#[cfg(unix)]
std::mem::drop(_r);

info!("starting fuzzing");
Expand Down Expand Up @@ -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);
Expand All @@ -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 {}",
Expand Down

0 comments on commit f8aa91e

Please sign in to comment.