Skip to content

Commit aad8300

Browse files
committed
Switch to pkg_config::probe_library and add comment
1 parent 6b7663b commit aad8300

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tensorflow-sys/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ fn main() {
4343
return;
4444
}
4545

46-
if pkg_config::find_library(LIBRARY).is_ok() {
46+
// Note that pkg_config will print cargo:rustc-link-lib and cargo:rustc-link-search as
47+
// appropriate if the library is found.
48+
if pkg_config::probe_library(LIBRARY).is_ok() {
4749
log!("Returning early because {} was already found", LIBRARY);
4850
return;
4951
}

0 commit comments

Comments
 (0)