diff options
| author | bors <bors@rust-lang.org> | 2014-01-11 13:06:27 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-11 13:06:27 -0800 |
| commit | db9ef2869543669103227e8f156b32978c165c83 (patch) | |
| tree | f5d296d02eb1a1933080764e4c5d8ad0f1e941f0 /src/librustpkg/path_util.rs | |
| parent | 91aec7c8a65db0768fdccc29706cba731101f7fc (diff) | |
| parent | e330d4b8bc5ac5baa512a9a9fad9e151769fc2bf (diff) | |
| download | rust-db9ef2869543669103227e8f156b32978c165c83.tar.gz rust-db9ef2869543669103227e8f156b32978c165c83.zip | |
auto merge of #11338 : jhasse/rust/patch-rustpkgtarget, r=alexcrichton
#11243
Diffstat (limited to 'src/librustpkg/path_util.rs')
| -rw-r--r-- | src/librustpkg/path_util.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustpkg/path_util.rs b/src/librustpkg/path_util.rs index aaaf56af436..78ff748c3b9 100644 --- a/src/librustpkg/path_util.rs +++ b/src/librustpkg/path_util.rs @@ -17,7 +17,7 @@ pub use target::{OutputType, Main, Lib, Test, Bench, Target, Build, Install}; pub use version::{Version, ExactRevision, NoVersion, split_version, split_version_general, try_parsing_version}; pub use rustc::metadata::filesearch::rust_path; -use rustc::metadata::filesearch::libdir; +use rustc::metadata::filesearch::{libdir, relative_target_lib_path}; use rustc::driver::driver::host_triple; use std::libc; @@ -213,10 +213,9 @@ pub fn library_in_workspace(path: &Path, short_name: &str, where: Target, library_in(short_name, version, &dir_to_search) } -// rustc doesn't use target-specific subdirectories pub fn system_library(sysroot: &Path, crate_id: &str) -> Option<Path> { let (lib_name, version) = split_crate_id(crate_id); - library_in(lib_name, &version, &sysroot.join(libdir())) + library_in(lib_name, &version, &sysroot.join(relative_target_lib_path(host_triple()))) } fn library_in(short_name: &str, version: &Version, dir_to_search: &Path) -> Option<Path> { |
