[libcxx-commits] [PATCH] D77298: [libc++abi] Default LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS to OFF

Raul Tambre via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 2 05:56:11 PDT 2020


tambre created this revision.
tambre added a reviewer: ldionne.
Herald added subscribers: libcxx-commits, dexonsmith, mgorny.
Herald added a project: libc++abi.
Herald added a reviewer: libc++abi.

Building LLVM now requires GCC 5.1.
A GCC 4.9 bug should no longer be of concern.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77298

Files:
  libcxxabi/CMakeLists.txt


Index: libcxxabi/CMakeLists.txt
===================================================================
--- libcxxabi/CMakeLists.txt
+++ libcxxabi/CMakeLists.txt
@@ -66,12 +66,9 @@
   "Build libc++abi with an externalized threading library.
    This option may only be set to ON when LIBCXXABI_ENABLE_THREADS=ON" OFF)
 
-# FIXME: This option should default to off. Unfortunatly GCC 4.9 fails to link
-# programs to due undefined references to new/delete in libc++abi. Once this
-# has been fixed or worked around the default value should be changed.
 option(LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS
     "Build libc++abi with definitions for operator new/delete. Normally libc++
-    provides these definitions" ON)
+    provides these definitions" OFF)
 option(LIBCXXABI_BUILD_32_BITS "Build 32 bit libc++abi." ${LLVM_BUILD_32_BITS})
 option(LIBCXXABI_INCLUDE_TESTS "Generate build targets for the libc++abi unit tests." ${LLVM_INCLUDE_TESTS})
 set(LIBCXXABI_LIBDIR_SUFFIX "${LLVM_LIBDIR_SUFFIX}" CACHE STRING


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77298.254494.patch
Type: text/x-patch
Size: 1006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200402/697bc752/attachment-0001.bin>


More information about the libcxx-commits mailing list