Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c505838

Browse files
committedDec 13, 2024··
Fix test failures with CLANG_USE_XCSELECT
1 parent 8c0ea7f commit c505838

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// UNSUPPORTED: xcselect
2+
// CLANG_USE_XCSELECT will always have an SDK inferred.
3+
4+
// RUN: touch %t.o
5+
6+
// RUN: %clang -target x86_64-apple-macos10.13 -mlinker-version=520 \
7+
// RUN: -### %t.o 2>&1 \
8+
// RUN: | FileCheck --check-prefix=NOSDK %s
9+
// RUN: %clang -target x86_64-apple-darwin17 -mlinker-version=520 \
10+
// RUN: -### %t.o 2>&1 \
11+
// RUN: | FileCheck --check-prefix=NOSDK %s
12+
// NOSDK: "-platform_version" "macos" "10.13.0" "10.13.0"

‎clang/test/Driver/darwin-ld-platform-version-macos.c

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// XFAIL: xcselect
2-
// FIXME: There's no reason why this should fail with CLANG_USE_XCSELECT.
3-
// See https://github.com/llvm/llvm-project/pull/119670.
4-
51
// RUN: touch %t.o
62

73
// RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld=lld \
@@ -47,8 +43,8 @@
4743

4844
// RUN: %clang -target x86_64-apple-macos10.13 -mlinker-version=520 \
4945
// RUN: -### %t.o 2>&1 \
50-
// RUN: | FileCheck --check-prefix=NOSDK %s
46+
// RUN: | FileCheck --check-prefix=INFERRED-SDK %s
5147
// RUN: %clang -target x86_64-apple-darwin17 -mlinker-version=520 \
5248
// RUN: -### %t.o 2>&1 \
53-
// RUN: | FileCheck --check-prefix=NOSDK %s
54-
// NOSDK: "-platform_version" "macos" "10.13.0" "10.13.0"
49+
// RUN: | FileCheck --check-prefix=INFERRED-SDK %s
50+
// INFERRED-SDK: "-platform_version" "macos" "10.13.0" "{{[0-9]+(\.[0-9]+)*}}"

0 commit comments

Comments
 (0)
Please sign in to comment.