From e6c23bb8939213653e58031430606059700da8ea Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 4 May 2015 13:18:00 -0700 Subject: [PATCH] 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 --- src/librustc_trans/back/link.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs index 92c9549b37727..c59d317d8dfc1 100644 --- a/src/librustc_trans/back/link.rs +++ b/src/librustc_trans/back/link.rs @@ -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 });