diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2022-06-06 22:22:11 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2022-08-20 13:30:27 +0200 |
commit | b5825e10df347ec8bba299bbd182562fbe3c199d (patch) | |
tree | 1284ec1504af956e5bbf2c668363884be442638a | |
parent | 9aa7bb4b7b9bbf0277531885f5ade0a71152f37a (diff) | |
download | ccache-b5825e10df347ec8bba299bbd182562fbe3c199d.tar.gz |
chore: Add debug log for -P + other preprocessor option
(cherry picked from commit 1ae1ae2bf9540fd0f623e6c61f8fe56ca3b572f5)
-rw-r--r-- | src/argprocessing.cpp | 3 |
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) { |