Skip to content

Commit

Permalink
Actually do something with cuda-static feature.
Browse files Browse the repository at this point in the history
Whoops!
  • Loading branch information
cjordan committed Jan 10, 2022
1 parent aa320ac commit 09f43c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ fn main() {
} else {
println!("cargo:rustc-link-lib=cudart");
}

#[cfg(feature = "cuda-static")]
println!("cargo:rustc-link-lib=static=cudart_static");
}
}

0 comments on commit 09f43c3

Please sign in to comment.