]> 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>
Tue, 7 Jun 2022 06:50:53 +0000 (08:50 +0200)
src/argprocessing.cpp

index 077704f02cb3f33f6e15c2f171352ddf19a260ba..6a504812e169c16e87d342df45a6d708331398b8 100644 (file)
@@ -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) {