================ @@ -1073,6 +1086,19 @@ bool Driver::readConfigFile(StringRef FileName, appendOneArg(*CfgOptions, Opt, BaseArg); } } + + if (!CfgLinkerInputs) + CfgLinkerInputs = std::move(NewLinkerIns); + else { + // If this is a subsequent config file, append options to the previous one. + for (auto *Opt : *NewLinkerIns) { + const Arg *BaseArg = &Opt->getBaseArg(); ---------------- MaskRay wrote:
Remove `getBaseArg` https://github.com/llvm/llvm-project/pull/117573 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits