Skip to content

Commit

Permalink
try to fix cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jul 13, 2024
1 parent 565601a commit 99ddbe4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ fn main() {
println!("cargo:rustc-link-search={}", out_dir.join("lib").display());
println!("cargo:rustc-link-search=native={}", bindings_dir.display());

// Cuda
if cfg!(feature = "cuda") {
println!(
"cargo:rustc-link-search={}",
out_dir.join("build\\lib\\Release").display()
);
}

if cfg!(feature = "cuda") && cfg!(windows) {
println!(
"cargo:rustc-link-search=native={}",
Expand Down

0 comments on commit 99ddbe4

Please sign in to comment.