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:
parent
c060e2e515
commit
545f012527
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue