Skip to content

Commit 7025adb

Browse files
committed
Add debugs
1 parent 6769c8b commit 7025adb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

scarb/src/compiler/plugin/proc_macro/compilation.rs

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ impl SharedLibraryProvider for Package {
6868

6969
fn prebuilt_lib_path(&self) -> Option<Utf8PathBuf> {
7070
let target_triple = target!();
71+
dbg!(target_triple);
7172

7273
let prebuilt_name = format!(
7374
"{name}_v{version}_{target}{suffix}",
@@ -83,6 +84,7 @@ impl SharedLibraryProvider for Package {
8384
.join("scarb")
8485
.join("cairo-plugin")
8586
.join(prebuilt_name);
87+
dbg!(prebuilt_path);
8688

8789
prebuilt_path.exists().then_some(prebuilt_path)
8890
}

scarb/src/ops/resolve.rs

+5
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,11 @@ pub fn generate_cairo_plugin_compilation_units(
816816
// Whether loading a prebuilt library is both allowed and requested.
817817
load_prebuilt: bool,
818818
) -> Result<ProcMacroCompilationUnit> {
819+
dbg!(member.id);
820+
dbg!(load_prebuilt);
819821
let load_prebuilt = load_prebuilt && member.prebuilt_lib_path().is_some();
822+
dbg!(member.prebuilt_lib_path());
823+
dbg!(member.prebuilt_lib_path().is_some());
820824
let prebuilt = load_prebuilt
821825
.then_some(
822826
ProcMacroInstance::try_load_prebuilt(member.clone())
@@ -827,6 +831,7 @@ pub fn generate_cairo_plugin_compilation_units(
827831
.map(Arc::new),
828832
)
829833
.flatten();
834+
dbg!(prebuilt.is_some());
830835
let components = vec![CompilationUnitComponent::try_new(
831836
member.clone(),
832837
vec![member

0 commit comments

Comments
 (0)