Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Jun 15, 2024
1 parent d4a9363 commit dabed73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libsais64-rs/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
Display,
Formatter
},
path::PathBuf,
path::{Path, PathBuf},
process::{
Command,
ExitStatus
Expand Down Expand Up @@ -80,7 +80,8 @@ fn main() -> Result<(), Box<dyn Error>> {
exit_status_to_result("make", Command::new("make").args(["-C", "libsais"]).status()?)?;

// link the c libsais library to rust
println!("cargo:rustc-link-search=native=libsais64-rs/libsais");
let dir = env::var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-search=native={}", Path::new(&dir).join("libsais").display());
println!("cargo:rustc-link-lib=static=libsais");

// The bindgen::Builder is the main entry point
Expand Down

0 comments on commit dabed73

Please sign in to comment.