Skip to content

Commit

Permalink
Allow to use clang++ with CUDA compiler.
Browse files Browse the repository at this point in the history
CUDA compiler supports clang++, but it wasn't possible to use it with
cc-rs, because --target option was passed to nvcc instead of clang.
  • Loading branch information
dot-asm committed Nov 22, 2022
1 parent daa41b9 commit 2cb2792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ impl Build {
cmd.args.push("--target=aarch64-unknown-windows-gnu".into())
}
} else {
cmd.args.push(format!("--target={}", target).into());
cmd.push_cc_arg(format!("--target={}", target).into());
}
}
}
Expand Down

0 comments on commit 2cb2792

Please sign in to comment.