Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Nov 14, 2024
1 parent f588715 commit 2a734a4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions crates/prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,16 @@ impl<C: SP1ProverComponents> SP1Prover<C> {
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);
Expand Down

0 comments on commit 2a734a4

Please sign in to comment.