[all-commits] [llvm/llvm-project] d14016: Define new/delete in libc++ when using libcxxrt

Dimitry Andric via All-commits all-commits at lists.llvm.org
Mon Feb 15 13:54:17 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: d14016d869acac0d0196bd6b846ab45879ea0fa5
      https://github.com/llvm/llvm-project/commit/d14016d869acac0d0196bd6b846ab45879ea0fa5
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:
    M libcxx/cmake/Modules/HandleLibCXXABI.cmake
    A libcxx/cmake/caches/FreeBSD.cmake

  Log Message:
  -----------
  Define new/delete in libc++ when using libcxxrt

Always turn on LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS, if libcxxrt is used
as the C++ ABI library, since libcxxrt does not provide the full set
ofnew and delete operators. In particular, the aligned versions of these
operators are completely missing. This primarily addresses builds on
FreeBSD, as this platform uses libcxxrt by default.

Also, attempt to provide a FreeBSD.cmake cache file, with hopefully sane
settings, partially copied from the Apple.cmake cache file. This needs
more work, probably some additions to ci build scripts (although I am
not aware of any 'official' FreeBSD build bots).

Reviewed By: ldionne, #libc

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

(cherry picked from commit 328261019f50a76b11fa625739cbf32ceb2ce2f7)




More information about the All-commits mailing list