Skip to content

Commit

Permalink
Pass the full path to rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
YtvwlD committed Jan 29, 2024
1 parent fb0a765 commit 4218fec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ibverbs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ use std::path::{Path, PathBuf};
use std::process::Command;

fn main() {
println!("cargo:include=vendor/rdma-core/build/include");
println!("cargo:rustc-link-search=native=vendor/rdma-core/build/lib");
let manifest_dir = env::var("CARGO_MANIFEST_DIR").expect("failed to get current directory");
println!("cargo:include={manifest_dir}/vendor/rdma-core/build/include");
println!("cargo:rustc-link-search=native={manifest_dir}/vendor/rdma-core/build/lib");
println!("cargo:rustc-link-lib=ibverbs");

// initialize and update submodules
Expand Down

0 comments on commit 4218fec

Please sign in to comment.