================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to