Skip to content

Commit

Permalink
fixing doc building
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragarnoy committed Mar 11, 2024
1 parent f806098 commit ca2e939
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ fn main() {
.expect("rss directory not found");

// 'acc_rss_libs' directory is supplied by the user, it contains the .a files compiled for their target
let acc_rss_libs =
PathBuf::from(env::var("ACC_RSS_LIBS").expect("Error: env variable ACC_RSS_LIBS"))
.canonicalize()
.expect("Error pointing to Acconeer static libs path.");
let acc_rss_libs = PathBuf::from(env::var("ACC_RSS_LIBS").unwrap_or_else(|_| ".".to_string()))
.canonicalize()
.expect("Error pointing to Acconeer static libs path.");

println!("cargo:rustc-link-search={}", acc_rss_libs.display());
println!("cargo:rustc-link-lib=static=acconeer_a121");
Expand Down

0 comments on commit ca2e939

Please sign in to comment.