[PATCH] D92399: clang/darwin: Use response files with ld64.lld.darwinnew

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 1 08:51:31 PST 2020


thakis updated this revision to Diff 308675.
thakis added a comment.

fewer build errors


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92399/new/

https://reviews.llvm.org/D92399

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


Index: clang/lib/Driver/ToolChains/Darwin.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Darwin.cpp
+++ clang/lib/Driver/ToolChains/Darwin.cpp
@@ -697,8 +697,10 @@
     }
   }
 
-  ResponseFileSupport ResponseSupport = ResponseFileSupport::AtFileUTF8();
-  if (Version[0] < 607) {
+  ResponseFileSupport ResponseSupport;
+  if (Version[0] >= 607 || LinkerIsLLDDarwinNew) {
+    ResponseSupport = ResponseFileSupport::AtFileUTF8();
+  } else {
     // For older versions of the linker, use the legacy filelist method instead.
     ResponseSupport = {ResponseFileSupport::RF_FileList, llvm::sys::WEM_UTF8,
                        "-filelist"};


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92399.308675.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201201/3f055237/attachment.bin>


More information about the cfe-commits mailing list