[all-commits] [llvm/llvm-project] 76b1a7: [libc++][Android] Explicitly declare low-level lib...

Ryan Prichard via All-commits all-commits at lists.llvm.org
Fri Nov 3 12:55:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76b1a7c91651b8c3516913ce9b11c05147ec46d2
      https://github.com/llvm/llvm-project/commit/76b1a7c91651b8c3516913ce9b11c05147ec46d2
  Author: Ryan Prichard <rprichard at google.com>
  Date:   2023-11-03 (Fri, 03 Nov 2023)

  Changed paths:
    M libcxx/cmake/config-ix.cmake
    M libcxxabi/cmake/config-ix.cmake

  Log Message:
  -----------
  [libc++][Android] Explicitly declare low-level lib existence (#70534)

Android's librt and libpthread functionality is part of libc.{a,so}
instead. The atomic APIs are part of the compiler-rt builtins archive.
Android does have libdl.

Android's libc.so has `__cxa_thread_atexit_impl` starting in API 23, and
the oldest supported API is 21, so continue using feature detection for
that API.

These settings need to be declared explicitly for the sake of the fuzzer
library's custom libc++ build `add_custom_libcxx`. That macro builds
libc++ using `-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY`, which
breaks the feature detection.




More information about the All-commits mailing list