Skip to content

Commit

Permalink
chore: Reset witnessgen data directory (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani authored Sep 5, 2024
1 parent f9795be commit af2cb88
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
Binary file modified elf/range-elf
Binary file not shown.
4 changes: 4 additions & 0 deletions proposer/succinct/bin/cost_estimator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ async fn run_native_data_generation(
ProgramType::Multi,
))
.expect("Failed to get host CLI args.");

// Overwrite existing data directory.
fs::create_dir_all(&host_cli.data_dir.clone().unwrap()).unwrap();

Check failure on line 171 in proposer/succinct/bin/cost_estimator.rs

View workflow job for this annotation

GitHub Actions / Formatting & Clippy

the borrowed expression implements the required traits

batch_host_clis.push(BatchHostCli {
host_cli: host_cli.clone(),
start: range.start,
Expand Down
25 changes: 13 additions & 12 deletions proposer/succinct/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::process::Command;

// use sp1_build::{build_program_with_args, BuildArgs};
use sp1_build::{build_program_with_args, BuildArgs};

/// Build a native program.
fn build_native_program(program: &str) {
Expand Down Expand Up @@ -41,17 +41,18 @@ fn build_native_host_runner() {
println!("cargo:warning=native_host_runner built with release profile",);
}

// /// Build a program for the zkVM.
// fn build_zkvm_program(program: &str) {
// build_program_with_args(
// &format!("../../programs/{}", program),
// BuildArgs {
// elf_name: format!("{}-elf", program),
// // docker: true,
// ..Default::default()
// },
// );
// }
/// Build a program for the zkVM.
#[allow(dead_code)]
fn build_zkvm_program(program: &str) {
build_program_with_args(
&format!("../../programs/{}", program),
BuildArgs {
elf_name: format!("{}-elf", program),
// docker: true,
..Default::default()
},
);
}

fn main() {
let programs = vec!["range"];
Expand Down

0 comments on commit af2cb88

Please sign in to comment.