From: Alexey Telishev Date: Sun, 8 May 2022 14:06:05 +0000 (+0300) Subject: fix: Fix "Multiple precompiled headers used" error if /Yu option is used after /Fp... X-Git-Tag: v4.6.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8aef251aa0947ad1f238d80070d39f4e05074d8;p=thirdparty%2Fccache.git fix: Fix "Multiple precompiled headers used" error if /Yu option is used after /Fp (#1059) --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index 6d3626697..a0888b2b1 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -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)) {