clang/test/Driver: Introduce the feature "clang-driver", set if gcc driver is not used.

It is not set at targetting cygming. See PR12920.

llvm-svn: 169824
This commit is contained in:
NAKAMURA Takumi 2012-12-11 07:06:09 +00:00
parent 14390f031c
commit 556d713c70
8 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,5 @@
// cygming have not supported integrated-as yet.
// XFAIL: cygwin,mingw32
// REQUIRES: clang-driver
//
// Check to make sure clang is somewhat picky about -g options.
// (Delived from debug-options.c)

View File

@ -5,7 +5,7 @@
// support.
//
// Both of them use gcc driver for as.
// XFAIL: cygwin,mingw32
// REQUIRES: clang-driver
//
// RUN: %clang -### -fno-honor-infinities -c %s 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NO-INFS %s

View File

@ -15,4 +15,4 @@
// CHECK-NO-SUCH-FILE: error: no such file or directory: 'unexisting.txt'
// PR12920
// XFAIL: cygwin,mingw32
// REQUIRES: clang-driver

View File

@ -1,4 +1,7 @@
// RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s
// gcc is invoked instead of clang-cc1as with gcc-driver -save-temps.
// REQUIRES: clang-driver
// CHECK: cc1as
// CHECK: -relax-all

View File

@ -1,4 +1,6 @@
// RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s
// REQUIRES: clang-driver
// CHECK: cc1as
// CHECK-NOT: -relax-all

View File

@ -2,4 +2,4 @@
// CHECK: "-L{{.*}}/test1"
// GCC driver is used as linker on cygming. It should be aware of LIBRARY_PATH.
// XFAIL: cygwin,mingw32,win32
// REQUIRES: clang-driver

View File

@ -4,4 +4,4 @@
// RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC %s
// RUN: %clang -### -pedantic -pedantic -no-pedantic -Wpedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC %s
// PEDANTIC: -pedantic
// XFAIL: cygwin,mingw32
// REQUIRES: clang-driver

View File

@ -245,6 +245,10 @@ if os.path.exists("/dev/fd/0") and sys.platform not in ['cygwin']:
if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
config.available_features.add('LP64')
# [PR12920] "clang-driver" -- set if gcc driver is not used.
if not re.match(r'.*-(cygwin|mingw32)$', config.target_triple):
config.available_features.add('clang-driver')
# Registered Targets
def get_llc_props(tool):
set_of_targets = set()