Auto merge of #25103 - alexcrichton:issue-25072, r=brson

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:
bors 2015-05-04 20:48:49 +00:00
commit f49a98431b

View File

@ -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
});