Skip to content

Commit 545f012

Browse files
committed
rustc: Fix detection of lib64 directory
Instead of just looking for its presence we need to see if it actually contains rust stuffs.
1 parent c060e2e commit 545f012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/metadata/filesearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ fn find_libdir(sysroot: &Path) -> ~str {
245245
// of the directory where librustc is located, rather than where the rustc
246246
// binary is.
247247

248-
if sysroot.join(primary_libdir_name()).exists() {
248+
if sysroot.join(primary_libdir_name()).join(rustlibdir()).exists() {
249249
return primary_libdir_name();
250250
} else {
251251
return secondary_libdir_name();

0 commit comments

Comments
 (0)