Skip to content

Commit

Permalink
set default value of env TARGET_CC
Browse files Browse the repository at this point in the history
  • Loading branch information
tolak committed Aug 16, 2024
1 parent 03d317a commit 9ddba67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions methods/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const SOLIDITY_IMAGE_ID_PATH: &str = "../contracts/ImageID.sol";
const SOLIDITY_ELF_PATH: &str = "../tests/Elf.sol";

fn main() {
// If TARGET_CC hasn't been set, set to clang as default
if env::var("TARGET_CC").is_err() {
env::set_var("TARGET_CC", "clang");
}

// Builds can be made deterministic, and thereby reproducible, by using Docker to build the
// guest. Check the RISC0_USE_DOCKER variable and use Docker to build the guest if set.
let use_docker = env::var("RISC0_USE_DOCKER").ok().map(|_| DockerOptions {
Expand Down

0 comments on commit 9ddba67

Please sign in to comment.