From: Reid Kleckner Date: Mon, 19 Aug 2013 23:52:36 +0000 (+0000) Subject: clang-cl: Add /MP[n] to the list of unsupported and ignored flags X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12627e505034e87ed6bcb361bab55edc67f5a7d6;p=clang clang-cl: Add /MP[n] to the list of unsupported and ignored flags This flag tells cl.exe to use up to n processes to compile the provided source files. I have no plans to implement this in clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188729 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index 083686d0e8..b52e6625ad 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -140,6 +140,7 @@ def _SLASH_GS : CLFlag<"GS">; def _SLASH_Gy : CLFlag<"Gy">; def _SLASH_Gy_ : CLFlag<"Gy-">; def _SLASH_GZ : CLFlag<"GZ">; +def _SLASH_MP : CLJoined<"MP">; def _SLASH_RTC : CLJoined<"RTC">; def _SLASH_w : CLJoined<"w">; def _SLASH_Za : CLFlag<"Za">; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 14c3c073cb..3eee6343f9 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -102,7 +102,7 @@ // RUN: %clang_cl /Zs /EHsc /Fdfoo /fp:precise /Gd /GL /GL- -- %s 2>&1 // RUN: %clang_cl /Zs /Gm /Gm- /GS /Gy /Gy- /GZ -- %s 2>&1 // RUN: %clang_cl /Zs /RTC1 /wfoo /Zc:wchar_t- -- %s 2>&1 -// RUN: %clang_cl /Zs /ZI /Zi -- %s 2>&1 +// RUN: %clang_cl /Zs /ZI /Zi /MP -- %s 2>&1 // We support -Xclang for forwarding options to cc1.