[clang] [flang] [clang][driver] Special care for -l flags in config files (PR #117573)

David Truby via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 04:55:48 PST 2024


================
@@ -1250,6 +1273,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
   if (!ContainsError)
     ContainsError = loadConfigFiles();
   bool HasConfigFile = !ContainsError && (CfgOptions.get() != nullptr);
+  bool HasConfigLinkerIn = !ContainsError && (CfgLinkerInputs.get() != nullptr);
----------------
DavidTruby wrote:

nit: can we declare this variable later on, when it's used, rather than up here? Just to keep the new additions together.

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


More information about the cfe-commits mailing list