================
@@ -89,6 +90,22 @@ bool DependencyScanningWorker::computeDependencies(
       return true;
     }
 
+    {
+      auto LogLine = Service.getLogger().log();
+      LogLine << "starting scanning command:";
+      for (const auto &C : Cmd) {
+        LogLine << " " << C;
+      }
+    }
----------------
Bigcheese wrote:

Did you check what the overhead is when logging is disabled? My expectation is 
that stuff like this loop still runs, but each `operator <<` exits early.

https://github.com/llvm/llvm-project/pull/195896
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to