]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Fix bug in support for Clang to compile CUDA code on Windows
authorsenhtry <w169q169@gmail.com>
Thu, 17 Jul 2025 14:01:51 +0000 (22:01 +0800)
committerGitHub <noreply@github.com>
Thu, 17 Jul 2025 14:01:51 +0000 (16:01 +0200)
src/ccache/ccache.cpp

index 30da9cae3791f13047f260c48de7c54d15d57959..65baf6093e7086c315e7092742f6a531c73f8173 100644 (file)
@@ -1379,7 +1379,8 @@ get_result_key_from_cpp(Context& ctx, Args& args, Hash& hash)
   // When Clang runs in verbose mode, it outputs command details to stdout,
   // which can corrupt the output of precompiled CUDA files. Therefore, caching
   // is disabled in this scenario. (Is there a better approach to handle this?)
-  const bool is_clang_cu = ctx.config.is_compiler_group_clang()
+  const bool is_clang_cu = (ctx.config.is_compiler_group_clang()
+                            && !ctx.config.is_compiler_group_msvc())
                            && (ctx.args_info.actual_language == "cu"
                                || ctx.args_info.actual_language == "cuda")
                            && !get_clang_cu_enable_verbose_mode(args);