[PATCH] D16511: [MSVC Compat] Only warn for unknown clang-cl arguments
Ehsan Akhgari via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 23 10:34:10 PST 2016
ehsan created this revision.
ehsan added a reviewer: rnk.
ehsan added a subscriber: cfe-commits.
MSVC's driver accepts all unknown arguments but warns about them. clang
by default rejects all unknown arguments. This causes issues
specifically with build systems such as autoconf which liberally pass
things such as $LDFLAGS to the compiler and expect everything to work.
This patch teaches clang-cl to ignore unknown driver arguments.
http://reviews.llvm.org/D16511
Files:
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/Driver.cpp
lib/Driver/Tools.cpp
test/Driver/cl-fallback.c
test/Driver/unknown-arg.c
test/Misc/warning-flags.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16511.45796.patch
Type: text/x-patch
Size: 4995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160123/d119eeb2/attachment.bin>
More information about the cfe-commits
mailing list