]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Add debug log for -P + other preprocessor option
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 6 Jun 2022 20:22:11 +0000 (22:22 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 20 Aug 2022 11:30:27 +0000 (13:30 +0200)
(cherry picked from commit 1ae1ae2bf9540fd0f623e6c61f8fe56ca3b572f5)

src/argprocessing.cpp

index cc4040d729988c66e74eca5b2157a85d5c8ca81c..2e0e4b37d5d3136ef7fc7d396649d7b7fbd03d26 100644 (file)
@@ -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) {