[flang-commits] [clang] [flang] [clang][driver] Use $ prefix with config file options to have them added after all of the command line options (PR #117573)
Paul Osmialowski via flang-commits
flang-commits at lists.llvm.org
Fri Dec 6 14:18:46 PST 2024
================
@@ -1243,13 +1268,14 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
// Try parsing configuration file.
if (!ContainsError)
ContainsError = loadConfigFiles();
- bool HasConfigFile = !ContainsError && (CfgOptions.get() != nullptr);
+ bool HasConfigFileHead = !ContainsError && CfgOptionsHead;
+ bool HasConfigFileTail = !ContainsError && CfgOptionsTail;
// All arguments, from both config file and command line.
- InputArgList Args = std::move(HasConfigFile ? std::move(*CfgOptions)
- : std::move(*CLOptions));
+ InputArgList Args = std::move(HasConfigFileHead ? std::move(*CfgOptionsHead)
----------------
pawosm-arm wrote:
Removed
https://github.com/llvm/llvm-project/pull/117573
More information about the flang-commits
mailing list