Skip to content

Commit 25d0c25

Browse files
authored
Revert "set rustc-link-lib/search for tensorflow lib found via pkg_config"
1 parent e372ce7 commit 25d0c25

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tensorflow-sys/build.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@ fn main() {
4343
return;
4444
}
4545

46-
if let Ok(library) = pkg_config::find_library(LIBRARY) {
47-
for lib in &library.libs {
48-
println!("cargo:rustc-link-lib=dylib={}", lib);
49-
}
50-
for path in &library.link_paths {
51-
println!("cargo:rustc-link-search=native={}", path.display());
52-
}
46+
if pkg_config::find_library(LIBRARY).is_ok() {
5347
log!("Returning early because {} was already found", LIBRARY);
5448
return;
5549
}

0 commit comments

Comments
 (0)