[libc++] Use correct Apple platform naming (#176290)

`macOS` is Apple's official branding since 2016. Use the correct
branding instead.
This commit is contained in:
Fady Farag 2026-01-19 09:30:21 -06:00 committed by GitHub
parent 07bedda4d3
commit 1537f743ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 deletions

View File

@ -165,7 +165,7 @@ Look for the failed build and select the ``artifacts`` tab. There, download the
abilist for the platform, e.g.:
* C++<version>.
* MacOS X86_64 and MacOS arm64 for the Apple platform.
* macOS X86_64 and macOS arm64 for the Apple platform.
Pre-commit CI
@ -237,7 +237,7 @@ Below is a short description of the most interesting CI builds [#]_:
* ``Santitizers`` tests libc++ using the Clang sanitizers.
* ``Parts disabled`` tests libc++ with certain libc++ features disabled.
* ``Windows`` tests libc++ using MinGW and clang-cl.
* ``Apple`` tests libc++ on MacOS.
* ``Apple`` tests libc++ on macOS.
* ``ARM`` tests libc++ on various Linux ARM platforms.
* ``AIX`` tests libc++ on AIX.

View File

@ -6,4 +6,4 @@ lists *MUST* be updated to reflect the changes. This can be done by using the
`generate-cxx-abilist` CMake target.
We do not keep an up-to-date ABI list for all the build configurations of libc++.
Currently, only the default configuration on MacOS and Linux are supported.
Currently, only the default configuration on macOS and Linux are supported.

View File

@ -151,13 +151,13 @@ if (APPLE AND LLVM_USE_SANITIZER)
elseif("${LLVM_USE_SANITIZER}" STREQUAL "Thread")
set(LIBFILE "libclang_rt.tsan_osx_dynamic.dylib")
else()
message(WARNING "LLVM_USE_SANITIZER=${LLVM_USE_SANITIZER} is not supported on OS X")
message(WARNING "LLVM_USE_SANITIZER=${LLVM_USE_SANITIZER} is not supported on macOS")
endif()
if (LIBFILE)
find_compiler_rt_library(builtins LIBCXX_BUILTINS_LIBRARY)
get_filename_component(LIBDIR "${LIBCXX_BUILTINS_LIBRARY}" DIRECTORY)
if (NOT IS_DIRECTORY "${LIBDIR}")
message(FATAL_ERROR "Cannot find compiler-rt directory on OS X required for LLVM_USE_SANITIZER")
message(FATAL_ERROR "Cannot find compiler-rt directory on macOS required for LLVM_USE_SANITIZER")
endif()
set(LIBCXX_SANITIZER_LIBRARY "${LIBDIR}/${LIBFILE}")
set(LIBCXX_SANITIZER_LIBRARY "${LIBCXX_SANITIZER_LIBRARY}" PARENT_SCOPE)

View File

@ -15,7 +15,7 @@
#include <cstring>
#include <stdexcept>
// MacOS and iOS used to ship with libstdc++, and still support old applications
// macOS and iOS used to ship with libstdc++, and still support old applications
// linking against libstdc++. The libc++ and libstdc++ exceptions are supposed
// to be ABI compatible, such that they can be thrown from one library and caught
// in the other.

View File

@ -165,7 +165,7 @@ static void test_no_resolve_symlink_on_symlink()
};
for (auto const& TC : cases) {
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_AIX)
// On OS X symlink permissions are supported. We should get an empty
// On macOS symlink permissions are supported. We should get an empty
// error code and the expected permissions.
const auto expected_link_perms = TC.expected;
std::error_code expected_ec;