summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-06-06 22:22:11 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-08-20 13:30:27 +0200
commitb5825e10df347ec8bba299bbd182562fbe3c199d (patch)
tree1284ec1504af956e5bbf2c668363884be442638a
parent9aa7bb4b7b9bbf0277531885f5ade0a71152f37a (diff)
downloadccache-b5825e10df347ec8bba299bbd182562fbe3c199d.tar.gz
chore: Add debug log for -P + other preprocessor option
(cherry picked from commit 1ae1ae2bf9540fd0f623e6c61f8fe56ca3b572f5)
-rw-r--r--src/argprocessing.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp
index cc4040d7..2e0e4b37 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) {