diff --git a/src/librustc/metadata/filesearch.rs b/src/librustc/metadata/filesearch.rs index 31252ab4f82a..df5aa1fe4149 100644 --- a/src/librustc/metadata/filesearch.rs +++ b/src/librustc/metadata/filesearch.rs @@ -235,8 +235,14 @@ pub fn rust_path() -> Vec { // The name of the directory rustc expects libraries to be located. // On Unix should be "lib", on windows "bin" +#[cfg(unix)] pub fn libdir() -> ~str { - (env!("CFG_LIBDIR_RELATIVE")).to_owned() + ~"lib" +} + +#[cfg(windows)] +pub fn libdir() -> ~str { + ~"bin" } // The name of rustc's own place to organize libraries.