From 4f312e3f3b2b4623e84518582a3ff17bbae70906 Mon Sep 17 00:00:00 2001 From: Frank Laub Date: Wed, 27 Nov 2024 01:04:15 -0800 Subject: [PATCH] Add support for using sccache wrapper with cuda/nvcc (#1304) --- 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 {