check-clang: Introduce the feature "non-ms-sdk" to suppress Driver/nostdincxx.cpp on msvc.

llvm-svn: 201484
This commit is contained in:
NAKAMURA Takumi 2014-02-16 10:15:57 +00:00
parent d7a60046d3
commit 0884887775
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,6 @@
// RUN: not %clangxx -nostdinc++ %s 2>&1 | FileCheck %s
// XFAIL: win32
// CHECK: file not found
#include <vector>
// MSVC has C++ headers in same directory as C headers.
// REQUIRES: non-ms-sdk

View File

@ -340,6 +340,10 @@ if os.path.exists("/dev/fd/0") and sys.platform not in ['cygwin']:
if not re.match(r'.*-win32$', config.target_triple):
config.available_features.add('dw2')
# Not set on native MS environment.
if not re.match(r'.*-win32$', config.target_triple):
config.available_features.add('non-ms-sdk')
# [PR8833] LLP64-incompatible tests
if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
config.available_features.add('LP64')