From 545f0125272249170b594e9cd42567df51db94aa Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 26 Mar 2014 19:21:23 -0700 Subject: [PATCH] rustc: Fix detection of lib64 directory Instead of just looking for its presence we need to see if it actually contains rust stuffs. --- src/librustc/metadata/filesearch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/metadata/filesearch.rs b/src/librustc/metadata/filesearch.rs index 5a92c48f4004..7aed0e5b7f40 100644 --- a/src/librustc/metadata/filesearch.rs +++ b/src/librustc/metadata/filesearch.rs @@ -245,7 +245,7 @@ fn find_libdir(sysroot: &Path) -> ~str { // of the directory where librustc is located, rather than where the rustc // binary is. - if sysroot.join(primary_libdir_name()).exists() { + if sysroot.join(primary_libdir_name()).join(rustlibdir()).exists() { return primary_libdir_name(); } else { return secondary_libdir_name();