From 665c78ff2cee688d7c7830f3b230f486774de4ac Mon Sep 17 00:00:00 2001 From: Frank Laub Date: Tue, 26 Nov 2024 20:48:54 -0800 Subject: [PATCH] Add support for using sccache wrapper with cuda/nvcc --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index da1b91be..7f21b05b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 {