[clang] Fix darwin REQUIRES test annotation (NFC)
authorKeith Smiley <keithbsmiley@gmail.com>
Wed, 6 Oct 2021 20:29:08 +0000 (13:29 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Thu, 7 Oct 2021 19:58:49 +0000 (12:58 -0700)
Some subprojects like compiler-rt define the `darwin` feature in their
lit config, but clang does not do that, so we need to use the global
`system-darwin` here instead.

Differential Revision: https://reviews.llvm.org/D111267

clang/test/Driver/apple-arm64-arch.c
clang/test/Driver/darwin-warning-options.c
clang/test/Driver/mtargetos-darwin.c

index 2c771ee..a37346b 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: env SDKROOT="/" %clang -arch arm64 -c -### %s 2>&1 | \
 // RUN:   FileCheck %s
 //
-// REQUIRES: darwin
+// REQUIRES: system-darwin
 // XFAIL: apple-silicon-mac
 //
 // CHECK: "-triple" "arm64-apple-ios{{[0-9.]+}}"
index a3301b3..b0a591e 100644 (file)
@@ -1,4 +1,4 @@
-// REQUIRES: darwin
+// REQUIRES: system-darwin
 
 // Always error about undefined 'TARGET_OS_*' macros on Darwin.
 // RUN: %clang -### %s 2>&1 | FileCheck %s
index 5acce1a..39fc875 100644 (file)
@@ -10,7 +10,7 @@
 // RUN: %clang -mtargetos=darwin20 -arch arm64 -c %s -o %t.o -### 2>&1 | FileCheck --check-prefix=INVALIDOS %s
 // RUN: %clang -mtargetos=ios -arch arm64 -c %s -o %t.o -### 2>&1 | FileCheck --check-prefix=NOVERSION %s
 
-// REQUIRES: darwin
+// REQUIRES: system-darwin
 
 // MACOS: "-cc1" "-triple" "arm64-apple-macosx11.0.0"
 // MACOS-NEXT: "-cc1" "-triple" "x86_64-apple-macosx11.0.0"