Skip to content

Commit

Permalink
Add support for using sccache wrapper with cuda/nvcc (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaub authored Nov 27, 2024
1 parent f770d56 commit 4f312e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2813,6 +2813,9 @@ impl Build {
.args
.push(format!("-ccbin={}", tool.path.display()).into());
}
if let Some(cc_wrapper) = self.rustc_wrapper_fallback() {
nvcc_tool.cc_wrapper_path = Some(Path::new(&cc_wrapper).to_owned());
}
nvcc_tool.family = tool.family;
nvcc_tool
} else {
Expand Down

0 comments on commit 4f312e3

Please sign in to comment.