Skip to content

Commit 05d4d2b

Browse files
Use log!() macro to log build information in tensorflow-sys/build.rs
1 parent b6bf663 commit 05d4d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ fn install_prebuilt() {
127127
let output = PathBuf::from(&get!("OUT_DIR"));
128128
let new_library_full_path = output.join(&library_file);
129129
if new_library_full_path.exists() {
130-
println!("File {} already exists, deleting.", new_library_full_path.display());
130+
log!("File {} already exists, deleting.", new_library_full_path.display());
131131
std::fs::remove_file(&new_library_full_path).unwrap();
132132
}
133133

134-
println!("Copying {} to {}...", library_full_path.display(), new_library_full_path.display());
134+
log!("Copying {} to {}...", library_full_path.display(), new_library_full_path.display());
135135
std::fs::copy(&library_full_path, &new_library_full_path).unwrap();
136136
println!("cargo:rustc-link-search={}", output.display());
137137
}

0 commit comments

Comments
 (0)