]> git.lizzy.rs Git - rust.git/commitdiff
rustc_trans: Fix another windows verbatim path
authorAlex Crichton <alex@alexcrichton.com>
Mon, 4 May 2015 20:18:00 +0000 (13:18 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 4 May 2015 20:18:00 +0000 (13:18 -0700)
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

index 92c9549b37727adbd9263cc95d52120776ef3efd..c59d317d8dfc1069462c793736717aff8513cc04 100644 (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
     });