]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Hash arguments that affect PCH result with MSVC /Yu
authorThomas Ferrand <a.tom.hic3@gmail.com>
Wed, 6 Mar 2024 19:41:13 +0000 (20:41 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2024 19:41:13 +0000 (20:41 +0100)
Fixes #1410.

src/ccache.cpp

index e9db8c5727cb8a10ec08fa4d4b2b9e38e1996540..3cbe27eaaf6de52d504c03b710f6d9d8a94528cf 100644 (file)
@@ -1719,7 +1719,8 @@ hash_argument(const Context& ctx,
   // going to have any effect at all. For precompiled headers this might not be
   // the case.
   if (!direct_mode && !ctx.args_info.output_is_precompiled_header
-      && !ctx.args_info.using_precompiled_header) {
+      && !ctx.args_info.using_precompiled_header
+      && !ctx.args_info.generating_pch) {
     if (compopt_affects_cpp_output(args[i])) {
       if (compopt_takes_arg(args[i])) {
         i++;