diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -125,7 +125,9 @@ // Expand response files (arguments in the form of @) // and then parse the argument again. - cl::ExpandResponseFiles(saver, getQuotingStyle(args), vec); + checkError( + cl::ExpandResponseFilesWithError(saver, getQuotingStyle(args), vec)); + concatLTOPluginOptions(vec); args = this->ParseArgs(vec, missingIndex, missingCount);