rustc: Fix detection of lib64 directory

Instead of just looking for its presence we need to see if it actually
contains rust stuffs.
This commit is contained in:
Brian Anderson 2014-03-26 19:21:23 -07:00
parent c060e2e515
commit 545f012527

View file

@ -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();