]> granicus.if.org Git - clang/commitdiff
Prevent ClangTools from generating dependency files.
authorSterling Augustine <saugustine@google.com>
Fri, 14 Jul 2017 18:33:30 +0000 (18:33 +0000)
committerSterling Augustine <saugustine@google.com>
Fri, 14 Jul 2017 18:33:30 +0000 (18:33 +0000)
D34304 created a way for ToolInvocations to conditionally generate
dependency files, and updated call sites to preserve the old behavior
of not generating them by default. CompilerInvocations...

Summary:
...are yet another
call-path that needs updating to preserve the old behavior.

Reviewers: klimek, echristo

Reviewed By: echristo

Subscribers: echristo, cfe-commits

Differential Revision: https://reviews.llvm.org/D35131

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

lib/Tooling/Tooling.cpp

index c84fbf47375315592b270fcd73adb2251acbe10e..662f02dca2a662b8480eaac59adae49cb9d9c7dd 100644 (file)
@@ -336,6 +336,7 @@ ClangTool::ClangTool(const CompilationDatabase &Compilations,
   OverlayFileSystem->pushOverlay(InMemoryFileSystem);
   appendArgumentsAdjuster(getClangStripOutputAdjuster());
   appendArgumentsAdjuster(getClangSyntaxOnlyAdjuster());
+  appendArgumentsAdjuster(getClangStripDependencyFileAdjuster());
 }
 
 ClangTool::~ClangTool() {}