While we are waiting for the AIX buildbot to be setup correctly: http://lab.llvm.org:8014/#/builders/144.
Here's the patch that would unblock the build of libc++ library on AIX:
- Add _AIX guard for _LIBCPP_HAS_THREAD_API_PTHREAD
- Add missing strtod_l and strtof_l which are needed for the build, and use uselocale to actually take the locale setting into account.
- 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.
- Do not build cxa_thread_atexit.cpp for libcxxabi on AIX.