Skip to content

Commit a8f3e27

Browse files
committed
fixup! Add 'cudart' feature to link with cudart_static.
1 parent 84082c5 commit a8f3e27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,9 @@ impl Build {
10021002
// it's on user to specify one by passing it through
10031003
// RUSTFLAGS environment variable.
10041004
let mut libtst = false;
1005-
let mut libdir = nvcc.canonicalize().unwrap();
1005+
let mut libdir = nvcc;
10061006
libdir.pop(); // remove 'nvcc'
1007-
libdir.pop(); // ..
1007+
libdir.push("..");
10081008
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
10091009
if cfg!(target_os = "linux") {
10101010
libdir.push("targets");

0 commit comments

Comments
 (0)