[PATCH] D32341: Fix a bug that warnings generated with -M or -MM flags
Yuka Takahashi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 21 00:52:41 PDT 2017
yamaguchi created this revision.
This is a patch for bug [1]
Warnings should not be emitted with -M and -MM flags, because this mode is only used for generate MakeFiles.
[1]:
https://bugs.llvm.org/show_bug.cgi?id=6817
https://reviews.llvm.org/D32341
Files:
lib/Driver/ToolChains/Clang.cpp
Index: lib/Driver/ToolChains/Clang.cpp
===================================================================
--- lib/Driver/ToolChains/Clang.cpp
+++ lib/Driver/ToolChains/Clang.cpp
@@ -980,6 +980,7 @@
DepTarget = Args.MakeArgString(llvm::sys::path::filename(P));
}
+ CmdArgs.push_back("-w");
CmdArgs.push_back("-MT");
SmallString<128> Quoted;
QuoteTarget(DepTarget, Quoted);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32341.96106.patch
Type: text/x-patch
Size: 417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170421/d7c378b1/attachment.bin>
More information about the cfe-commits
mailing list