about summary refs log tree commit diff
path: root/src/librustc/metadata
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2015-11-02 11:42:20 -0800
committerVadim Chugunov <vadimcn@gmail.com>2015-11-02 11:42:20 -0800
commit8cf50bc1fdaea47832a2b7404b435bf942cefd5a (patch)
tree937db6d3c794d5ca7404243f9b9797ea1344f3ad /src/librustc/metadata
parent4e0c6db67fdc4221ef50b0f72974c63949cb7e1c (diff)
downloadrust-8cf50bc1fdaea47832a2b7404b435bf942cefd5a.tar.gz
rust-8cf50bc1fdaea47832a2b7404b435bf942cefd5a.zip
Merged windows and unix `find_libdir()`
Diffstat (limited to 'src/librustc/metadata')
-rw-r--r--src/librustc/metadata/filesearch.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/librustc/metadata/filesearch.rs b/src/librustc/metadata/filesearch.rs
index 7ea4ef0d1c0..546c205f99c 100644
--- a/src/librustc/metadata/filesearch.rs
+++ b/src/librustc/metadata/filesearch.rs
@@ -258,7 +258,6 @@ pub fn rust_path() -> Vec<PathBuf> {
 }
 
 // The name of the directory rustc expects libraries to be located.
-#[cfg(unix)]
 fn find_libdir(sysroot: &Path) -> String {
     // FIXME: This is a quick hack to make the rustc binary able to locate
     // Rust libraries in Linux environments where libraries might be installed
@@ -292,11 +291,6 @@ fn find_libdir(sysroot: &Path) -> String {
     }
 }
 
-#[cfg(windows)]
-fn find_libdir(_sysroot: &Path) -> String {
-    "lib".to_string()
-}
-
 // The name of rustc's own place to organize libraries.
 // Used to be "rustc", now the default is "rustlib"
 pub fn rustlibdir() -> String {