rustc_trans: Fix another windows verbatim path
This was one last spot where directories were being leaked through with arguments of the form `\\?\` which neither `ld.exe` nor `gcc.exe` does understands so the prefix needed to be stripped. Closes #25072
This commit is contained in:
parent
70db76602e
commit
e6c23bb893
@ -1078,7 +1078,7 @@ fn add_local_native_libraries(cmd: &mut Command, sess: &Session) {
|
||||
sess.target_filesearch(PathKind::All).for_each_lib_search_path(|path, k| {
|
||||
match k {
|
||||
PathKind::Framework => { cmd.arg("-F").arg(path); }
|
||||
_ => { cmd.arg("-L").arg(path); }
|
||||
_ => { cmd.arg("-L").arg(&fix_windows_verbatim_for_gcc(path)); }
|
||||
}
|
||||
FileDoesntMatch
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user