Skip to content

Commit b4c6554

Browse files
committed
Add cargo:ROOT output for library paths
1 parent 499972d commit b4c6554

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openblas-src/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fn windows_gnu_system() {
4242
)
4343
.expect("cygpath output includes non UTF-8 string");
4444
println!("cargo:rustc-link-search={}", lib_path);
45+
println!("cargo:ROOT={}",lib_path);
4546
}
4647

4748
/// Use vcpkg for msvc "system" feature
@@ -75,6 +76,7 @@ fn macos_system() {
7576

7677
println!("cargo:rustc-link-search={}/lib", openblas.display());
7778
println!("cargo:rustc-link-search={}/lib", libomp.display());
79+
println!("cargo:ROOT={}", openblas.display());
7880
}
7981

8082
fn main() {
@@ -220,6 +222,7 @@ fn build() {
220222
};
221223

222224
println!("cargo:rustc-link-search={}", source.display());
225+
println!("cargo:ROOT={}", source.display());
223226
for search_path in &make_conf.c_extra_libs.search_paths {
224227
println!("cargo:rustc-link-search={}", search_path.display());
225228
}

0 commit comments

Comments
 (0)