about summary refs log tree commit diff
path: root/src/comp/util
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-11 14:13:11 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-11 14:13:11 -0800
commitf921e2e3d149a19510c397c7606a98cab690382f (patch)
tree7b26be71b67cd3a3291ce19283b41a405cb413c1 /src/comp/util
parent94c389a25bde3f86f25e45b2a31d09bf72d8deeb (diff)
Revert "build: Build libraries in the bin directory on win32"
This reverts commit c00ec5f9c936639ec2fd9291cd484afa56aa24c8.
Diffstat (limited to 'src/comp/util')
-rw-r--r--src/comp/util/filesearch.rs17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/comp/util/filesearch.rs b/src/comp/util/filesearch.rs
index d2dd2fc502c..e030ddeed40 100644
--- a/src/comp/util/filesearch.rs
+++ b/src/comp/util/filesearch.rs
@@ -16,7 +16,6 @@ export pick_file;
 export search;
 export relative_target_lib_path;
 export get_cargo_root;
-export libdir;
 
 type pick<T> = block(path: fs::path) -> option::t<T>;
 
@@ -81,7 +80,7 @@ fn search<T: copy>(filesearch: filesearch, pick: pick<T>) -> option::t<T> {
 }
 
 fn relative_target_lib_path(target_triple: str) -> [fs::path] {
-    [libdir(), "rustc", target_triple, libdir()]
+    ["lib", "rustc", target_triple, "lib"]
 }
 
 fn make_target_lib_path(sysroot: fs::path,
@@ -122,16 +121,6 @@ fn get_cargo_root() -> result::t<fs::path, str> {
 
 fn get_cargo_lib_path() -> result::t<fs::path, str> {
     result::chain(get_cargo_root()) { |p|
-        result::ok(fs::connect(p, libdir()))
+        result::ok(fs::connect(p, "lib"))
     }
-}
-
-// The name of the directory rustc expects libraries to be located.
-// On Unix should be "lib", on windows "bin"
-fn libdir() -> str {
-   let libdir = #env("CFG_LIBDIR");
-   if str::is_empty(libdir) {
-      fail "rustc compiled without CFG_LIBDIR environment variable";
-   }
-   libdir
-}
+}
\ No newline at end of file