about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-05-04 13:18:00 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-05-04 13:18:00 -0700
commite6c23bb8939213653e58031430606059700da8ea (patch)
tree2cff6e3557f6113674a48fc9418bb0210d0caa5b /src
parent70db76602e0fbd88c718e4f564b90a8819978773 (diff)
downloadrust-e6c23bb8939213653e58031430606059700da8ea.tar.gz
rust-e6c23bb8939213653e58031430606059700da8ea.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/librustc_trans/back/link.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
index 92c9549b377..c59d317d8df 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
     });