]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Use MSVC logic for clang-cl when handling precompiled header (#1365)
authorDarkShadow44 <dark.shadow4@web.de>
Mon, 27 Nov 2023 19:34:30 +0000 (20:34 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2023 19:34:30 +0000 (20:34 +0100)
src/argprocessing.cpp

index f155e3500f447b9cbe34dba87e5df9af33e5975e..845ba8ecdb685cbac53eacfce69b93fbe7531eca 100644 (file)
@@ -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()) {