From: Thomas Ferrand Date: Wed, 6 Mar 2024 19:41:13 +0000 (+0100) Subject: fix: Hash arguments that affect PCH result with MSVC /Yu X-Git-Tag: v4.10~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d589072d4629526fe00e6b70bf62720ce0718ee;p=thirdparty%2Fccache.git fix: Hash arguments that affect PCH result with MSVC /Yu Fixes #1410. --- diff --git a/src/ccache.cpp b/src/ccache.cpp index e9db8c57..3cbe27ea 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -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++;