[all-commits] [llvm/llvm-project] 158026: [libc++][AIX] Initial patch to unblock the libc++ ...

Jason Liu via All-commits all-commits at lists.llvm.org
Wed Mar 24 15:15:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 158026301b4842bb877fc8a6a444c348da6d9f3b
      https://github.com/llvm/llvm-project/commit/158026301b4842bb877fc8a6a444c348da6d9f3b
  Author: jasonliu <jasonliu.development at gmail.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M libcxx/include/__config
    M libcxx/include/__support/ibm/xlocale.h
    M libcxx/src/filesystem/filesystem_common.h
    M libcxxabi/src/CMakeLists.txt

  Log Message:
  -----------
  [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




More information about the All-commits mailing list