[libcxx-commits] [PATCH] D60797: [libc++][CMake] Always provide new/delete in libc++ unless specified otherwise
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 18 07:46:04 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL358671: [libc++][CMake] Always provide new/delete in libc++ unless specified otherwise (authored by ldionne, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D60797?vs=195469&id=195736#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60797/new/
https://reviews.llvm.org/D60797
Files:
libcxx/trunk/CMakeLists.txt
Index: libcxx/trunk/CMakeLists.txt
===================================================================
--- libcxx/trunk/CMakeLists.txt
+++ libcxx/trunk/CMakeLists.txt
@@ -197,20 +197,10 @@
"Use and install a linker script for the given ABI library"
${ENABLE_LINKER_SCRIPT_DEFAULT_VALUE})
-set(ENABLE_NEW_DELETE_DEFAULT ON)
-if (LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS)
-# FIXME: This option should default to off. Unfortunatly GCC 4.9 fails to link
-# programs due to undefined references to new/delete in libc++abi so to work
-# around this libc++abi currently defaults LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS
-# to ON. Once the GCC bug has been worked around this option should be changed
-# back to OFF.
- set(ENABLE_NEW_DELETE_DEFAULT ON)
-endif()
-
option(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS
"Build libc++ with definitions for operator new/delete. This option can
- be used to disable the definitions when libc++abi is expected to provide
- them" ${ENABLE_NEW_DELETE_DEFAULT})
+ be used to disable the definitions when libc++abi is expected to provide
+ them" ON)
# Build libc++abi with libunwind. We need this option to determine whether to
# link with libunwind or libgcc_s while running the test cases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60797.195736.patch
Type: text/x-patch
Size: 1253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190418/a0843da0/attachment.bin>
More information about the libcxx-commits
mailing list