From 2a734a4a28f811e1ebc184e859e4902f2c2d6901 Mon Sep 17 00:00:00 2001 From: nhtyy Date: Thu, 14 Nov 2024 10:19:02 -0800 Subject: [PATCH] fix: ci --- crates/prover/src/lib.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/crates/prover/src/lib.rs b/crates/prover/src/lib.rs index 9d55542bf..f723e6155 100644 --- a/crates/prover/src/lib.rs +++ b/crates/prover/src/lib.rs @@ -275,10 +275,16 @@ impl SP1Prover { context.subproof_verifier.replace(Arc::new(self)); let program = self.get_program(elf).unwrap(); let opts = SP1CoreOpts::default(); - let mut runtime = if cfg!(debug_assertions) { - Executor::with_context_and_elf(program, opts, context, elf) - } else { - Executor::with_context(program, opts, context) + let mut runtime = { + #[cfg(debug_assertions)] + { + Executor::with_context_and_elf(program, opts, context, elf) + } + + #[cfg(not(debug_assertions))] + { + Executor::with_context(program, opts, context) + } }; runtime.write_vecs(&stdin.buffer);