From: Joel Rosdahl Date: Mon, 6 Jun 2022 20:22:11 +0000 (+0200) Subject: chore: Add debug log for -P + other preprocessor option X-Git-Tag: v4.6.2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5825e10df347ec8bba299bbd182562fbe3c199d;p=thirdparty%2Fccache.git chore: Add debug log for -P + other preprocessor option (cherry picked from commit 1ae1ae2bf9540fd0f623e6c61f8fe56ca3b572f5) --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index cc4040d72..2e0e4b37d 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -735,7 +735,8 @@ process_arg(const Context& ctx, if (util::starts_with(args[i], "-Wp,")) { if (args[i].find(",-P,") != std::string::npos || util::ends_with(args[i], ",-P")) { - // -P together with other preprocessor options is just too hard. + LOG("-P together with other preprocessor options is too hard: {}", + args[i]); return Statistic::unsupported_compiler_option; } else if (util::starts_with(args[i], "-Wp,-MD,") && args[i].find(',', 8) == std::string::npos) {