about summary refs log tree commit diff
path: root/src/libnative/io
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-26 13:03:40 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-27 12:03:58 -0800
commit40ab198356bbec05b308b2e61ebc6fe9e23ade9d (patch)
treea177fc5faeb60e7d2ca0ab5bc9b45f9f619087b8 /src/libnative/io
parentcd9010c77e764e9348ecd92dc4a285f6514505dc (diff)
downloadrust-40ab198356bbec05b308b2e61ebc6fe9e23ade9d.tar.gz
rust-40ab198356bbec05b308b2e61ebc6fe9e23ade9d.zip
rustc: Use libnative for the compiler
The compiler itself doesn't necessarily need any features of green threading
such as spawning tasks and lots of I/O, so libnative is slightly more
appropriate for rustc to use itself.

This should also help the rusti bot which is currently incompatible with libuv.
Diffstat (limited to 'src/libnative/io')
-rw-r--r--src/libnative/io/file_win32.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libnative/io/file_win32.rs b/src/libnative/io/file_win32.rs
index 9fe57536da3..e880bd05cf7 100644
--- a/src/libnative/io/file_win32.rs
+++ b/src/libnative/io/file_win32.rs
@@ -433,6 +433,7 @@ pub fn readlink(p: &CString) -> IoResult<Path> {
                                         libc::VOLUME_NAME_DOS)
     });
     let ret = match ret {
+        Some(ref s) if s.starts_with(r"\\?\") => Ok(Path::new(s.slice_from(4))),
         Some(s) => Ok(Path::new(s)),
         None => Err(super::last_error()),
     };