Skip to content

Commit d61eb49

Browse files
committed
add debugging info
1 parent 8f8750b commit d61eb49

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

libsql-ffi/build.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,23 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
412412
fn copy_multiple_ciphers(out_path: &Path) {
413413
let dst = dbg!(build_multiple_ciphers(out_path));
414414

415+
let build_dir = dst.join("build");
416+
if build_dir.exists() {
417+
println!("cargo:warning=Build directory contents:");
418+
for entry in std::fs::read_dir(&build_dir).unwrap() {
419+
let entry = entry.unwrap();
420+
println!("cargo:warning= {:?}", entry.path());
421+
422+
// If it's a directory, list its contents too
423+
if entry.path().is_dir() {
424+
for sub_entry in std::fs::read_dir(entry.path()).unwrap() {
425+
let sub_entry = sub_entry.unwrap();
426+
println!("cargo:warning= {:?}", sub_entry.path());
427+
}
428+
}
429+
}
430+
}
431+
415432
println!("cargo:rustc-link-lib=static=sqlite3mc_static");
416433
println!("cargo:rustc-link-search={}", dst.join("build").display());
417434
}

0 commit comments

Comments
 (0)