From: Hans Wennborg Date: Sat, 13 Dec 2014 22:24:16 +0000 (+0000) Subject: clang-cl: ignore /cgthreads (PR21894) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36d0438857c2c96e8d08ef244e385654c54d8a45;p=clang clang-cl: ignore /cgthreads (PR21894) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224201 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index 281f1d1e90..6269b7cd8f 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -197,6 +197,7 @@ def _SLASH_TP : CLCompileFlag<"TP">, HelpText<"Treat all source files as C++">; // Ignored: def _SLASH_analyze_ : CLIgnoredFlag<"analyze-">; +def _SLASH_cgthreads : CLIgnoredJoined<"cgthreads">; def _SLASH_d2Zi_PLUS : CLIgnoredFlag<"d2Zi+">; def _SLASH_errorReport : CLIgnoredJoined<"errorReport">; def _SLASH_FS : CLIgnoredFlag<"FS">, HelpText<"Force synchronous PDB writes">; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 01e92682f7..e3017f8589 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -172,6 +172,8 @@ // (/Zs is for syntax-only) // RUN: %clang_cl /Zs \ // RUN: /analyze- \ +// RUN: /cgthreads4 \ +// RUN: /cgthreads8 \ // RUN: /d2Zi+ \ // RUN: /errorReport:foo \ // RUN: /FS \