@@ -32,7 +32,7 @@ pub fn walk_native_lib_search_dirs<R>(
32
32
f ( & search_path. dir , false ) ?;
33
33
}
34
34
for search_path in sess. target_filesearch ( PathKind :: Framework ) . cli_search_paths ( ) {
35
- // Contrary to the `-L` docs only framework-specific paths are considered here .
35
+ // Frameworks are looked up strictly in framework-specific paths.
36
36
if search_path. kind != PathKind :: All {
37
37
f ( & search_path. dir , true ) ?;
38
38
}
@@ -45,7 +45,7 @@ pub fn walk_native_lib_search_dirs<R>(
45
45
| LinkSelfContainedComponents :: UNWIND
46
46
| LinkSelfContainedComponents :: MINGW ,
47
47
) {
48
- f ( & sess. target_filesearch ( PathKind :: Native ) . get_self_contained_lib_path ( ) , false ) ?;
48
+ f ( & sess. target_tlib_path . dir . join ( "self-contained" ) , false ) ?;
49
49
}
50
50
51
51
// Toolchains for some targets may ship `libunwind.a`, but place it into the main sysroot
@@ -59,7 +59,7 @@ pub fn walk_native_lib_search_dirs<R>(
59
59
|| sess. target . os == "fuchsia"
60
60
|| sess. target . is_like_osx && !sess. opts . unstable_opts . sanitizer . is_empty ( )
61
61
{
62
- f ( & sess. target_filesearch ( PathKind :: Native ) . get_lib_path ( ) , false ) ?;
62
+ f ( & sess. target_tlib_path . dir , false ) ?;
63
63
}
64
64
65
65
// Mac Catalyst uses the macOS SDK, but to link to iOS-specific frameworks
0 commit comments