[PATCH] D148763: [Driver] Support response file in Fuchsia driver

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 19 17:05:14 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/D148763

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


Index: clang/lib/Driver/ToolChains/Fuchsia.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Fuchsia.cpp
+++ clang/lib/Driver/ToolChains/Fuchsia.cpp
@@ -187,7 +187,8 @@
       CmdArgs.push_back("-lc");
   }
 
-  C.addCommand(std::make_unique<Command>(JA, *this, ResponseFileSupport::None(),
+  C.addCommand(std::make_unique<Command>(JA, *this,
+                                         ResponseFileSupport::AtFileCurCP(),
                                          Exec, CmdArgs, Inputs, Output));
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148763.515144.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230420/c7fba1f5/attachment.bin>


More information about the cfe-commits mailing list