Skip to content

Commit

Permalink
fixup! Add 'cudart' feature to link with cudart_static.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jul 28, 2021
1 parent 84082c5 commit a8f3e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -1002,9 +1002,9 @@ impl Build {
// it's on user to specify one by passing it through
// RUSTFLAGS environment variable.
let mut libtst = false;
let mut libdir = nvcc.canonicalize().unwrap();
let mut libdir = nvcc;
libdir.pop(); // remove 'nvcc'
libdir.pop(); // ..
libdir.push("..");
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
if cfg!(target_os = "linux") {
libdir.push("targets");
Expand Down

0 comments on commit a8f3e27

Please sign in to comment.