Work around GCC linking errors within libc++abi due to missing new/delete definitions

llvm-svn: 296822
This commit is contained in:
Eric Fiselier 2017-03-02 21:55:03 +00:00
parent e720feb1c6
commit c7051e706f
1 changed files with 6 additions and 1 deletions

View File

@ -159,7 +159,12 @@ option(LIBCXX_ENABLE_ABI_LINKER_SCRIPT
set(ENABLE_NEW_DELETE_DEFAULT ON)
if (LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS)
set(ENABLE_NEW_DELETE_DEFAULT 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 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