Skip to content

Commit

Permalink
[compiler-rt] Bump deployment target in tests
Browse files Browse the repository at this point in the history
On Darwin, libc++ is the default C++ stdlib now, and that requires
a deployment target of at least 10.7.
  • Loading branch information
ldionne committed Oct 12, 2022
1 parent 1c41d0c commit 72e7fd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
@@ -1,4 +1,4 @@
// RUN: %clang %s -o %t -mmacosx-version-min=10.6 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
// RUN: %clang %s -o %t -mmacosx-version-min=10.7 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
// RUN: %run %t

int __isOSVersionAtLeast(int Major, int Minor, int Subminor);
Expand Down
@@ -1,11 +1,10 @@
// RUN: %clang %s -o %t -mmacosx-version-min=10.6
// RUN: %clang %s -o %t -mmacosx-version-min=10.7
// RUN: %run %t

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

int main() {
// When CoreFoundation isn't linked, we expect the system version to be 0, 0,
// 0.
// When CoreFoundation isn't linked, we expect the system version to be 0, 0, 0.
if (__isOSVersionAtLeast(1, 0, 0))
return 1;
return 0;
Expand Down
@@ -1,4 +1,4 @@
// RUN: %clang %s -o %t -mmacosx-version-min=10.6 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
// RUN: %clang %s -o %t -mmacosx-version-min=10.7 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
// RUN: %run %t

typedef int int32_t;
Expand Down

0 comments on commit 72e7fd7

Please sign in to comment.