]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Fix "Multiple precompiled headers used" error if /Yu option is used after /Fp...
authorAlexey Telishev <alex-telishev@ya.ru>
Sun, 8 May 2022 14:06:05 +0000 (17:06 +0300)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 14:06:05 +0000 (16:06 +0200)
src/argprocessing.cpp

index 6d3626697a973a24fe2fa92ba62d72111ebbd9b5..a0888b2b191f224343b120a0eec7172d8cb14144 100644 (file)
@@ -125,6 +125,7 @@ detect_pch(const std::string& option,
     if (state.found_valid_Fp) { // Use file set by -Fp.
       LOG("Detected use of precompiled header: {}", included_pch_file);
       pch_file = included_pch_file;
+      included_pch_file.clear(); // reset pch file set from /Fp
     } else {
       std::string file = Util::change_extension(arg, ".pch");
       if (Stat::stat(file)) {