From: DarkShadow44 Date: Mon, 27 Nov 2023 19:34:30 +0000 (+0100) Subject: fix: Use MSVC logic for clang-cl when handling precompiled header (#1365) X-Git-Tag: v4.9~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b763420fdfdc6fdff91dd30698008157613da36f;p=thirdparty%2Fccache.git fix: Use MSVC logic for clang-cl when handling precompiled header (#1365) --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index f155e3500..845ba8ecd 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -1405,7 +1405,7 @@ process_args(Context& ctx) if (!state.input_charset_option.empty()) { state.cpp_args.push_back(state.input_charset_option); } - if (state.found_pch && ctx.config.compiler_type() != CompilerType::msvc) { + if (state.found_pch && !ctx.config.is_compiler_group_msvc()) { state.cpp_args.push_back("-fpch-preprocess"); } if (!state.explicit_language.empty()) {