Skip to content

Commit

Permalink
chore(blockifier): move env var from run time to compile time
Browse files Browse the repository at this point in the history
commit-id:80a7265d
  • Loading branch information
Itay-Tsabary-Starkware committed Dec 4, 2024
1 parent 611737c commit 1b90f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/blockifier/src/test_utils/cairo_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn cairo1_compiler_tag() -> String {
/// overridden by the environment variable (otherwise, the default is used).
fn local_cairo1_compiler_repo_path() -> PathBuf {
// Location of blockifier's Cargo.toml.
let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
let manifest_dir = env!("CARGO_MANIFEST_DIR");

Path::new(&manifest_dir).join(
env::var(CAIRO1_REPO_RELATIVE_PATH_OVERRIDE_ENV_VAR)
Expand Down Expand Up @@ -217,7 +217,7 @@ fn verify_cairo0_compiler_deps() {
} else {
format!("installed version: {cairo_lang_version}")
},
env::var("CARGO_MANIFEST_DIR").unwrap(),
env!("CARGO_MANIFEST_DIR"),
CAIRO0_PIP_REQUIREMENTS_FILE
);
}
Expand Down

0 comments on commit 1b90f8c

Please sign in to comment.