Skip to content

Commit 72e7fd7

Browse files
committed
[compiler-rt] Bump deployment target in tests
On Darwin, libc++ is the default C++ stdlib now, and that requires a deployment target of at least 10.7.
1 parent 1c41d0c commit 72e7fd7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang %s -o %t -mmacosx-version-min=10.6 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
1+
// RUN: %clang %s -o %t -mmacosx-version-min=10.7 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
22
// RUN: %run %t
33

44
int __isOSVersionAtLeast(int Major, int Minor, int Subminor);

compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
// RUN: %clang %s -o %t -mmacosx-version-min=10.6
1+
// RUN: %clang %s -o %t -mmacosx-version-min=10.7
22
// RUN: %run %t
33

44
int __isOSVersionAtLeast(int Major, int Minor, int Subminor);
55

66
int main() {
7-
// When CoreFoundation isn't linked, we expect the system version to be 0, 0,
8-
// 0.
7+
// When CoreFoundation isn't linked, we expect the system version to be 0, 0, 0.
98
if (__isOSVersionAtLeast(1, 0, 0))
109
return 1;
1110
return 0;

compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang %s -o %t -mmacosx-version-min=10.6 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
1+
// RUN: %clang %s -o %t -mmacosx-version-min=10.7 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
22
// RUN: %run %t
33

44
typedef int int32_t;

0 commit comments

Comments
 (0)