diff --git a/scarb/src/compiler/plugin/proc_macro/compilation.rs b/scarb/src/compiler/plugin/proc_macro/compilation.rs index 684353c25..fe7cf80dc 100644 --- a/scarb/src/compiler/plugin/proc_macro/compilation.rs +++ b/scarb/src/compiler/plugin/proc_macro/compilation.rs @@ -68,6 +68,7 @@ impl SharedLibraryProvider for Package { fn prebuilt_lib_path(&self) -> Option { let target_triple = target!(); + dbg!(&target_triple); let prebuilt_name = format!( "{name}_v{version}_{target}{suffix}", @@ -83,6 +84,7 @@ impl SharedLibraryProvider for Package { .join("scarb") .join("cairo-plugin") .join(prebuilt_name); + dbg!(&prebuilt_path); prebuilt_path.exists().then_some(prebuilt_path) } diff --git a/scarb/src/ops/resolve.rs b/scarb/src/ops/resolve.rs index 177d9f919..76944247d 100644 --- a/scarb/src/ops/resolve.rs +++ b/scarb/src/ops/resolve.rs @@ -816,7 +816,11 @@ pub fn generate_cairo_plugin_compilation_units( // Whether loading a prebuilt library is both allowed and requested. load_prebuilt: bool, ) -> Result { + dbg!(member.id); + dbg!(load_prebuilt); let load_prebuilt = load_prebuilt && member.prebuilt_lib_path().is_some(); + dbg!(member.prebuilt_lib_path()); + dbg!(member.prebuilt_lib_path().is_some()); let prebuilt = load_prebuilt .then_some( ProcMacroInstance::try_load_prebuilt(member.clone()) @@ -827,6 +831,7 @@ pub fn generate_cairo_plugin_compilation_units( .map(Arc::new), ) .flatten(); + dbg!(prebuilt.is_some()); let components = vec![CompilationUnitComponent::try_new( member.clone(), vec![member