[PATCH] D148760: [Driver] Support response file on baremetal driver

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 19 16:59:59 PDT 2023


phosek created this revision.
phosek added reviewers: abrachet, mcgrathr.
Herald added a project: All.
phosek requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.

All officially supported linkers should support response files and
this avoids issues when compiling on platforms such as Windows.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148760

Files:
  clang/lib/Driver/ToolChains/BareMetal.cpp


Index: clang/lib/Driver/ToolChains/BareMetal.cpp
===================================================================
--- clang/lib/Driver/ToolChains/BareMetal.cpp
+++ clang/lib/Driver/ToolChains/BareMetal.cpp
@@ -345,7 +345,8 @@
   CmdArgs.push_back("-o");
   CmdArgs.push_back(Output.getFilename());
 
-  C.addCommand(std::make_unique<Command>(JA, *this, ResponseFileSupport::None(),
+  C.addCommand(std::make_unique<Command>(JA, *this,
+                                         ResponseFileSupport::AtFileCurCP(),
                                          Args.MakeArgString(TC.GetLinkerPath()),
                                          CmdArgs, Inputs, Output));
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148760.515141.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230419/b2391a25/attachment.bin>


More information about the cfe-commits mailing list