[clang] [clang][DependencyScanning] Add a Clang Driver Option to Enable Dependency Scanning Logging (PR #211966)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 19 11:47:51 PDT 2026


================
@@ -125,6 +127,9 @@ buildCompilation(ArrayRef<std::string> ArgStrs, DiagnosticsEngine &Diags,
     return std::make_pair(nullptr, nullptr);
   }
 
+  Logger.enable(
+      Compilation->getArgs().getLastArgValue(options::OPT_fdepscan_log_path));
----------------
cyndyishida wrote:

> Imagine having a project where some targets have -fdepscan-log-path and some don't

You could also just error out in this scenario, but ya having a global way to pass options for the scanner is better long-term.

https://github.com/llvm/llvm-project/pull/211966


More information about the cfe-commits mailing list