diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-03-25 19:17:02 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-03-25 21:35:10 -0700 |
| commit | f772e31d6484f090b9bc50f8e14f426c9c6dfaff (patch) | |
| tree | d3f96311c05ef48e123f8107e3cd3778a4b3f370 | |
| parent | 6f9b30c6c11b05fdb299bcab97b5002a813c0bac (diff) | |
| download | rust-f772e31d6484f090b9bc50f8e14f426c9c6dfaff.tar.gz rust-f772e31d6484f090b9bc50f8e14f426c9c6dfaff.zip | |
rustc: Stop relying on CFG_LIBDIR_RELATIVE
This is not sufficient for finding the library directory for binary installs, but it does make the build more complex by requiring env vars be set to build rustc.
| -rw-r--r-- | src/librustc/metadata/filesearch.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/librustc/metadata/filesearch.rs b/src/librustc/metadata/filesearch.rs index 31252ab4f82..df5aa1fe414 100644 --- a/src/librustc/metadata/filesearch.rs +++ b/src/librustc/metadata/filesearch.rs @@ -235,8 +235,14 @@ pub fn rust_path() -> Vec<Path> { // 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. |
