diff options
author | jasonliu <jasonliu.development@gmail.com> | 2021-03-24 20:26:52 +0300 |
---|---|---|
committer | jasonliu <jasonliu.development@gmail.com> | 2021-03-25 01:13:20 +0300 |
commit | 158026301b4842bb877fc8a6a444c348da6d9f3b (patch) | |
tree | ddb9c92568e67ec36bb50e43f2a4a541b0c754c7 /libcxxabi/src/CMakeLists.txt | |
parent | adf42dff421c0509cc8d2fe103d6e6fe3a30f855 (diff) |
[libc++][AIX] Initial patch to unblock the libc++ build on AIX
This path would unblock the build of libc++ library on AIX:
1. Add _AIX guard for _LIBCPP_HAS_THREAD_API_PTHREAD
2. Use uselocale to actually take the locale setting
into account.
3. extract_mtime and extract_atime mod needed for AIX. As stat
structure on AIX uses internal structure st_timespec to store
time for binary compatibility reason. So we need to convert it
back to timespec here.
4. Do not build cxa_thread_atexit.cpp for libcxxabi on AIX.
Differential Revision: https://reviews.llvm.org/D97558
Diffstat (limited to 'libcxxabi/src/CMakeLists.txt')
-rw-r--r-- | libcxxabi/src/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt index a2945f00bc25..32a998e02f48 100644 --- a/libcxxabi/src/CMakeLists.txt +++ b/libcxxabi/src/CMakeLists.txt @@ -36,7 +36,8 @@ else() ) endif() -if (LIBCXXABI_ENABLE_THREADS AND (UNIX OR FUCHSIA) AND NOT (APPLE OR CYGWIN)) +if (LIBCXXABI_ENABLE_THREADS AND (UNIX OR FUCHSIA) AND NOT (APPLE OR CYGWIN) + AND NOT (${CMAKE_SYSTEM_NAME} MATCHES "AIX")) list(APPEND LIBCXXABI_SOURCES cxa_thread_atexit.cpp ) |