Skip to content

Commit

Permalink
fix(cairo_native): use current dir in cairo compile
Browse files Browse the repository at this point in the history
  • Loading branch information
noaov1 committed Dec 19, 2024
1 parent 24503a1 commit c487834
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/blockifier/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ fn compile_cairo_native_aot_runtime() {
use std::path::PathBuf;
use std::process::Command;

use infra_utils::compile_time_cargo_manifest_dir;
use infra_utils::path::current_dir;

let cairo_native_dir =
PathBuf::from(compile_time_cargo_manifest_dir!()).join(PathBuf::from("cairo_native"));
current_dir().expect("Failed to get current directory").join(PathBuf::from("cairo_native"));

if !cairo_native_dir.exists() || !cairo_native_dir.join(".git").exists() {
panic!(
Expand Down

0 comments on commit c487834

Please sign in to comment.