From 731fef6bdf7d108dd09c9b91c664c3690b6d57f8 Mon Sep 17 00:00:00 2001 From: Nikita Masych Date: Wed, 27 Nov 2024 18:33:43 +0200 Subject: [PATCH] fix: changed conditioning for timing functionality in circuit_builder --- plonky2/src/plonk/circuit_builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plonky2/src/plonk/circuit_builder.rs b/plonky2/src/plonk/circuit_builder.rs index 16f2a61c32..5f8c3200b8 100644 --- a/plonky2/src/plonk/circuit_builder.rs +++ b/plonky2/src/plonk/circuit_builder.rs @@ -1075,7 +1075,7 @@ impl, const D: usize> CircuitBuilder { ) -> (CircuitData, bool) { let mut timing = TimingTree::new("preprocess", Level::Trace); - #[cfg(feature = "std")] + #[cfg(feature = "timing")] let start = Instant::now(); let rate_bits = self.config.fri_config.rate_bits; @@ -1308,7 +1308,7 @@ impl, const D: usize> CircuitBuilder { }; timing.print(); - #[cfg(feature = "std")] + #[cfg(feature = "timing")] debug!("Building circuit took {}s", start.elapsed().as_secs_f32()); ( CircuitData {