]> granicus.if.org Git - clang/commitdiff
clang-cl: Don't warn on /bigobj flag
authorNico Weber <nicolasweber@gmx.de>
Fri, 18 Sep 2015 20:49:33 +0000 (20:49 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 18 Sep 2015 20:49:33 +0000 (20:49 +0000)
LLVM r217812 made it so that clang-cl implicitly creates bigobj files when
needed, independent of this flag. It looks like cl has this flag to produce obj
flags compatible with MSVS 2003's linker by default, something we don't care
about. Since clang-cl always has /bigobj behavior, don't warn that the flag is
unused, just ignore it silently.

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

include/clang/Driver/CLCompatOptions.td
test/Driver/cl-options.c

index 8cd6c588ac46325b820e5afbe74e8d4d198434b1..61294c7aba41f44cc874fef252c07355514ef1ba 100644 (file)
@@ -243,6 +243,7 @@ def _SLASH_Zl : CLFlag<"Zl">,
 // Ignored:
 
 def _SLASH_analyze_ : CLIgnoredFlag<"analyze-">;
+def _SLASH_bigobj : CLIgnoredFlag<"bigobj">;
 def _SLASH_cgthreads : CLIgnoredJoined<"cgthreads">;
 def _SLASH_d2Zi_PLUS : CLIgnoredFlag<"d2Zi+">;
 def _SLASH_errorReport : CLIgnoredJoined<"errorReport">;
@@ -274,7 +275,6 @@ def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
 // Unsupported:
 
 def _SLASH_AI : CLJoined<"AI">;
-def _SLASH_bigobj : CLFlag<"bigobj">;
 def _SLASH_clr : CLJoined<"clr">;
 def _SLASH_doc : CLJoined<"doc">;
 def _SLASH_FA_joined : CLJoined<"FA">;
index a52a3692694df30e2ac0b977154e9e66023e648c..7e2c7a48c25fb3689263256e4bde19475d9a1742 100644 (file)
 // Ignored options. Check that we don't get "unused during compilation" errors.
 // RUN: %clang_cl /c \
 // RUN:    /analyze- \
+// RUN:    /bigobj \
 // RUN:    /cgthreads4 \
 // RUN:    /cgthreads8 \
 // RUN:    /d2Zi+ \