[clang] 9f9ed7a - [clang] Fix darwin REQUIRES test annotation (NFC)
Keith Smiley via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 7 12:58:58 PDT 2021
Author: Keith Smiley
Date: 2021-10-07T12:58:49-07:00
New Revision: 9f9ed7a81ab8ad6af46c7c5ba9109a7ef29fc7a7
URL: https://github.com/llvm/llvm-project/commit/9f9ed7a81ab8ad6af46c7c5ba9109a7ef29fc7a7
DIFF: https://github.com/llvm/llvm-project/commit/9f9ed7a81ab8ad6af46c7c5ba9109a7ef29fc7a7.diff
LOG: [clang] Fix darwin REQUIRES test annotation (NFC)
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
Added:
Modified:
clang/test/Driver/apple-arm64-arch.c
clang/test/Driver/darwin-warning-options.c
clang/test/Driver/mtargetos-darwin.c
Removed:
################################################################################
diff --git a/clang/test/Driver/apple-arm64-arch.c b/clang/test/Driver/apple-arm64-arch.c
index 2c771ee403680..a37346b1a9bb0 100644
--- a/clang/test/Driver/apple-arm64-arch.c
+++ b/clang/test/Driver/apple-arm64-arch.c
@@ -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.]+}}"
diff --git a/clang/test/Driver/darwin-warning-options.c b/clang/test/Driver/darwin-warning-options.c
index a3301b3fae9a1..b0a591eac8204 100644
--- a/clang/test/Driver/darwin-warning-options.c
+++ b/clang/test/Driver/darwin-warning-options.c
@@ -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
diff --git a/clang/test/Driver/mtargetos-darwin.c b/clang/test/Driver/mtargetos-darwin.c
index 5acce1a2c1cf8..39fc8753e460c 100644
--- a/clang/test/Driver/mtargetos-darwin.c
+++ b/clang/test/Driver/mtargetos-darwin.c
@@ -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"
More information about the cfe-commits
mailing list