From c4878345f2444a38c3fe99912eed8000f93d5afc Mon Sep 17 00:00:00 2001 From: Noa Oved Date: Thu, 19 Dec 2024 12:04:33 +0200 Subject: [PATCH] fix(cairo_native): use current dir in cairo compile --- crates/blockifier/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/blockifier/build.rs b/crates/blockifier/build.rs index 552782168d..9be6da801c 100644 --- a/crates/blockifier/build.rs +++ b/crates/blockifier/build.rs @@ -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!(