Skip to content

Commit

Permalink
[clang] Fix darwin REQUIRES test annotation (NFC)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
keith committed Oct 7, 2021
1 parent c5245dd commit 9f9ed7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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.]+}}"
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/mtargetos-darwin.c
Expand Up @@ -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"
Expand Down

0 comments on commit 9f9ed7a

Please sign in to comment.