[libcxx-commits] [PATCH] D96720: Define new/delete in libc++ when using libcxxrt
Dimitry Andric via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 15 12:22:40 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG328261019f50: Define new/delete in libc++ when using libcxxrt (authored by dim).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96720/new/
https://reviews.llvm.org/D96720
Files:
libcxx/cmake/Modules/HandleLibCXXABI.cmake
libcxx/cmake/caches/FreeBSD.cmake
Index: libcxx/cmake/caches/FreeBSD.cmake
===================================================================
--- /dev/null
+++ libcxx/cmake/caches/FreeBSD.cmake
@@ -0,0 +1,9 @@
+set(CMAKE_BUILD_TYPE Release CACHE STRING "")
+set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "")
+
+set(LIBCXX_ENABLE_ASSERTIONS OFF CACHE BOOL "")
+set(LIBCXX_ABI_VERSION "1" CACHE STRING "")
+set(LIBCXX_ENABLE_STATIC ON CACHE BOOL "")
+set(LIBCXX_ENABLE_SHARED ON CACHE BOOL "")
+set(LIBCXX_CXX_ABI libcxxrt CACHE STRING "")
+set(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "")
Index: libcxx/cmake/Modules/HandleLibCXXABI.cmake
===================================================================
--- libcxx/cmake/Modules/HandleLibCXXABI.cmake
+++ libcxx/cmake/Modules/HandleLibCXXABI.cmake
@@ -121,6 +121,8 @@
if(NOT LIBCXX_CXX_ABI_INCLUDE_PATHS)
set(LIBCXX_CXX_ABI_INCLUDE_PATHS "/usr/include/c++/v1")
endif()
+ # libcxxrt does not provide aligned new and delete operators
+ set(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON)
setup_abi_lib(
"-DLIBCXXRT"
"cxxrt" "cxxrt" "cxxabi.h;unwind.h;unwind-arm.h;unwind-itanium.h" ""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96720.323814.patch
Type: text/x-patch
Size: 1135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210215/a3345b08/attachment-0001.bin>
More information about the libcxx-commits
mailing list