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.7~209 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ae1ae2bf9540fd0f623e6c61f8fe56ca3b572f5;p=thirdparty%2Fccache.git chore: Add debug log for -P + other preprocessor option --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index 077704f02..6a504812e 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -732,7 +732,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) {