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 27, 2021
1 parent f87b7e9 commit 16d0df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,8 @@ impl Build {
// RUSTFLAGS environment variable.
let mut libtst = false;
let mut libdir = nvcc.to_path_buf();
libdir.pop(); // remove 'nvcc'
libdir.pop(); // ..
libdir.pop(); // remove 'nvcc'
libdir.pop(); // ..
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
if cfg!(target_os = "linux") {
libdir.push("targets");
Expand Down

0 comments on commit 16d0df3

Please sign in to comment.