File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,22 @@ pub fn find_lib_path() -> Result<PathBuf, Error> {
30
30
31
31
fn collect_possible_directories ( ) -> Vec < PathBuf > {
32
32
let mut paths = vec ! [ ] ;
33
+ let separator = if cfg ! ( windows) { ';' } else { ':' } ;
33
34
34
35
if let Ok ( lib_paths) = env:: var ( "LD_LIBRARY_PATH" ) {
35
- for item in lib_paths. split ( ':' ) {
36
+ for item in lib_paths. split ( separator ) {
36
37
paths. push ( PathBuf :: from ( item) ) ;
37
38
}
38
39
}
39
40
40
41
if let Ok ( lib_paths) = env:: var ( "DYLD_FALLBACK_LIBRARY_PATH" ) {
41
- for item in lib_paths. split ( ':' ) {
42
+ for item in lib_paths. split ( separator ) {
42
43
paths. push ( PathBuf :: from ( item) ) ;
43
44
}
44
45
}
45
46
46
47
if let Ok ( bin_paths) = env:: var ( "PATH" ) {
47
- for item in bin_paths. split ( ':' ) {
48
+ for item in bin_paths. split ( separator ) {
48
49
let mut possible_path = PathBuf :: from ( item) ;
49
50
50
51
possible_path. pop ( ) ;
You can’t perform that action at this time.
0 commit comments