diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-03-02 23:37:26 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-03-02 23:37:26 +0000 |
commit | c0423b349bd2dfb0baaf1d1d47b976623f879104 (patch) | |
tree | 214e02eb66c66719ece531148103d1ed4fb32338 /clang/lib/Tooling/Tooling.cpp | |
parent | b17a3b3d3373148e448dcf4267ecd238c94a997c (diff) | |
download | bcm5719-llvm-c0423b349bd2dfb0baaf1d1d47b976623f879104.tar.gz bcm5719-llvm-c0423b349bd2dfb0baaf1d1d47b976623f879104.zip |
Disable all dependency output options when using the Tooling library.
It isn't appropriate for a tool to be stomping over the dependency files,
especially if the actual build uses a compiler other than Clang or the tool
cannot find all the headers for some reason (which would cause the existing
dependency file to be deleted).
If a tool actually needs to care about dependency files we can think about
adding a mechanism for getting to this information.
Differential Revision: http://llvm-reviews.chandlerc.com/D2912
llvm-svn: 202669
Diffstat (limited to 'clang/lib/Tooling/Tooling.cpp')
-rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index a58854d1af3..ee110e33b69 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -99,6 +99,7 @@ static clang::CompilerInvocation *newInvocation( *Diagnostics); Invocation->getFrontendOpts().DisableFree = false; Invocation->getCodeGenOpts().DisableFree = false; + Invocation->getDependencyOutputOpts() = DependencyOutputOptions(); return Invocation; } |