// 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)
// 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
// CHECK-NO-SUCH-FILE: error: no such file or directory: 'unexisting.txt'
// PR12920
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
// 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
// RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s
+// REQUIRES: clang-driver
+
// CHECK: cc1as
// CHECK-NOT: -relax-all
// 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
// 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
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()