]> granicus.if.org Git - clang/commitdiff
The MinGW linker supports response files
authorReid Kleckner <rnk@google.com>
Fri, 2 Aug 2019 22:55:00 +0000 (22:55 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 2 Aug 2019 22:55:00 +0000 (22:55 +0000)
This affects both LLD and ld.bfd.

This isn't testable with a normal driver test with -### because those
command lines are printed before response file setup. I tested manually
and confirmed it seems to do the right thing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367733 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/MinGW.h

index 08298e910ebbdd7a12557b7423f5cb3b5ae3006b..6752a405be879901e913885ee3d9191c89cb6079 100644 (file)
@@ -34,7 +34,8 @@ public:
 
 class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
 public:
-  Linker(const ToolChain &TC) : Tool("MinGW::Linker", "linker", TC) {}
+  Linker(const ToolChain &TC)
+      : Tool("MinGW::Linker", "linker", TC, Tool::RF_Full) {}
 
   bool hasIntegratedCPP() const override { return false; }
   bool isLinkJob() const override { return true; }