Skip to content

Commit

Permalink
rustpkg: Make code actually compile
Browse files Browse the repository at this point in the history
oops.
  • Loading branch information
catamorphism committed May 4, 2013
1 parent c42f121 commit 9f76ca6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/librustc/metadata/filesearch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ pub fn mk_filesearch(maybe_sysroot: &Option<@Path>,
fn sysroot(&self) -> @Path { self.sysroot }
fn for_each_lib_search_path(&self, f: &fn(&Path) -> bool) {
debug!("filesearch: searching additional lib search paths");
if !self.addl_lib_search_paths.each(f) {
return;
}
// a little weird
self.addl_lib_search_paths.each(f);

debug!("filesearch: searching target lib path");
if !f(&make_target_lib_path(self.sysroot,
Expand All @@ -59,7 +58,7 @@ pub fn mk_filesearch(maybe_sysroot: &Option<@Path>,
match get_rustpkg_lib_path() {
result::Ok(ref p) => f(p),
result::Err(_) => true
}
};
}
fn get_target_lib_path(&self) -> Path {
make_target_lib_path(self.sysroot, self.target_triple)
Expand Down

0 comments on commit 9f76ca6

Please sign in to comment.