[compiler-rt] 72e7fd7 - [compiler-rt] Bump deployment target in tests

Louis Dionne via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 14:29:04 PDT 2022


Author: Louis Dionne
Date: 2022-10-12T17:28:48-04:00
New Revision: 72e7fd7152885f9a96060ee8ca35d9e816d7190d

URL: https://github.com/llvm/llvm-project/commit/72e7fd7152885f9a96060ee8ca35d9e816d7190d
DIFF: https://github.com/llvm/llvm-project/commit/72e7fd7152885f9a96060ee8ca35d9e816d7190d.diff

LOG: [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.

Added: 
    

Modified: 
    compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test.c
    compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c
    compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test.c b/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test.c
index bae1f3255065..2f0ca04ec48f 100644
--- a/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test.c
+++ b/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test.c
@@ -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);

diff  --git a/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c b/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c
index 90c798f6c55f..39de3887a019 100644
--- a/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c
+++ b/compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c
@@ -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;

diff  --git a/compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c b/compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c
index 8e56fd91dd61..da0e366430a7 100644
--- a/compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c
+++ b/compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c
@@ -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;


        


More information about the llvm-commits mailing list