-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathbuild.rs
More file actions
24 lines (22 loc) · 946 Bytes
/
build.rs
File metadata and controls
24 lines (22 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use risc0_build::{DockerOptionsBuilder, GuestOptionsBuilder};
use std::collections::HashMap;
fn main() {
sp1_build::build_program_with_args("./aggregation_programs/sp1", {
sp1_build::BuildArgs {
output_directory: Some("./aggregation_programs/sp1/elf".to_string()),
..Default::default()
}
});
// With this containerized build process, we ensure that all builds of the guest code,
// regardless of the machine or local environment, will produce the same ImageID
let docker_options = DockerOptionsBuilder::default().build().unwrap();
// Reference: https://github.com/risc0/risc0/blob/main/risc0/build/src/config.rs#L73-L90
let guest_options = GuestOptionsBuilder::default()
.use_docker(docker_options)
.build()
.unwrap();
risc0_build::embed_methods_with_options(HashMap::from([(
"risc0_aggregation_program",
guest_options,
)]));
}