Skip to content

Commit

Permalink
Merge pull request #9 from deliveroo/LOG-XXX-use-new-libosrmc-api
Browse files Browse the repository at this point in the history
LOG-XXX Update to maintain compatibility with new libosrmc API
  • Loading branch information
farthir authored Jan 17, 2022
2 parents ff21280 + fa8c3e5 commit 0e58e29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion osrmc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ fn main() {
// therefore not symlinked to a directory where the linker can find it. `rustc-link-search` is a
// hack which tells rustc to add the TBB location to the linker search path. Note that the
// DYLD_LIBRARY_PATH environment variable can no longer be used on MacOS due to System Integrity
// Protection.
// Protection. `/usr/local` is the Homebrew install path on Intel and `/opt/homebrew` is for
// Apple Silicon.
println!("cargo:rustc-link-search=/usr/local/opt/tbb@2020/lib");
println!("cargo:rustc-link-search=/opt/homebrew/opt/tbb@2020/lib");
println!("cargo:rustc-link-search=/opt/homebrew/opt/boost/lib");
println!("cargo:rustc-link-lib=tbb");

// Boost library names differ on macOS.
Expand Down
2 changes: 1 addition & 1 deletion src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl Annotations {
}

fn set_distance(&mut self) -> Result<()> {
call_with_error!(osrmc_table_annotations_set_distance(self.handle))?;
call_with_error!(osrmc_table_annotations_enable_distance(self.handle, true))?;
Ok(())
}
}
Expand Down

0 comments on commit 0e58e29

Please sign in to comment.