forked from OSchip/llvm-project
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:
parent
14390f031c
commit
556d713c70
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -15,4 +15,4 @@
|
|||
// CHECK-NO-SUCH-FILE: error: no such file or directory: 'unexisting.txt'
|
||||
|
||||
// PR12920
|
||||
// XFAIL: cygwin,mingw32
|
||||
// REQUIRES: clang-driver
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s
|
||||
|
||||
// REQUIRES: clang-driver
|
||||
|
||||
// CHECK: cc1as
|
||||
// CHECK-NOT: -relax-all
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue