[all-commits] [llvm/llvm-project] 05b371: [libcxxabi] Add LIBCXXABI_HAS_WIN32_THREAD_API bui...

zero9178 via All-commits all-commits at lists.llvm.org
Fri Mar 5 06:31:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05b3716ddbd536c130caa79cf8486f62548f05fc
      https://github.com/llvm/llvm-project/commit/05b3716ddbd536c130caa79cf8486f62548f05fc
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M libcxxabi/CMakeLists.txt

  Log Message:
  -----------
  [libcxxabi] Add LIBCXXABI_HAS_WIN32_THREAD_API build option

A few files in libc++abi make use of libc++ headers and a few of those use threading primitives provided by libc++. Since libc++ has multiple threading APIs it may be necessary to override auto-detection.

This patch adds the LIBCXXABI_HAS_WIN32_THREAD_API which does roughly the same as LIBCXXABI_HAS_PTHREAD_API and the similarly named LIBCXX_HAS_WIN32_THREAD_API from libc++. Instead of using autodetection it will force the use of win32 threads instead of pthreads in headers included from libc++.

Without this patch, libc++abi may depend on pthreads if present on the users build environment, even if win32 threading was selected for libc++.

Differential revision: https://reviews.llvm.org/D98021




More information about the All-commits mailing list