[all-commits] [llvm/llvm-project] da1044: [libc++] Allow building without threads in standal...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Sep 15 05:45:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: da104444fafbc8f657f06c2188ab2e8284563e3d
      https://github.com/llvm/llvm-project/commit/da104444fafbc8f657f06c2188ab2e8284563e3d
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M libcxxabi/CMakeLists.txt

  Log Message:
  -----------
  [libc++] Allow building without threads in standalone builds

Setting _LIBCPP_HAS_NO_THREADS is needed when building libcxxabi without
threads in standalone mode. This is useful when target WASM. Otherwise,
you get an error like "No thread API" when building libcxxabi.

It would be better to link against a properly-configured libc++ headers
CMake target when building libc++abi instead, but we don't generate such
targets yet.

Thanks to Matthew Bauer for the patch.

Differential Revision: https://reviews.llvm.org/D60743




More information about the All-commits mailing list