File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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
8082fn 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 }
You can’t perform that action at this time.
0 commit comments