Skip to content

Commit 4f312e3

Browse files
authored
Add support for using sccache wrapper with cuda/nvcc (#1304)
1 parent f770d56 commit 4f312e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2813,6 +2813,9 @@ impl Build {
28132813
.args
28142814
.push(format!("-ccbin={}", tool.path.display()).into());
28152815
}
2816+
if let Some(cc_wrapper) = self.rustc_wrapper_fallback() {
2817+
nvcc_tool.cc_wrapper_path = Some(Path::new(&cc_wrapper).to_owned());
2818+
}
28162819
nvcc_tool.family = tool.family;
28172820
nvcc_tool
28182821
} else {

0 commit comments

Comments
 (0)