提交 545f0125 编写于 作者: B Brian Anderson

rustc: Fix detection of lib64 directory

Instead of just looking for its presence we need to see if it actually
contains rust stuffs.
上级 c060e2e5
...@@ -245,7 +245,7 @@ fn find_libdir(sysroot: &Path) -> ~str { ...@@ -245,7 +245,7 @@ fn find_libdir(sysroot: &Path) -> ~str {
// of the directory where librustc is located, rather than where the rustc // of the directory where librustc is located, rather than where the rustc
// binary is. // binary is.
if sysroot.join(primary_libdir_name()).exists() { if sysroot.join(primary_libdir_name()).join(rustlibdir()).exists() {
return primary_libdir_name(); return primary_libdir_name();
} else { } else {
return secondary_libdir_name(); return secondary_libdir_name();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册