[libc++] Make sure we don't attempt to run check-cxx-abilist when libc++ doesn't define new/delete

That would make the test fail spuriously because we don't generate
an ABI list for that configuration.
This commit is contained in:
Louis Dionne 2020-09-30 14:58:17 -04:00
parent 2d761a368c
commit 490b556a0f
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ if (EXISTS "${ABILIST_FILE}"
AND ("${LIBCXX_CXX_ABI_LIBNAME}" STREQUAL "libcxxabi" OR
(APPLE AND "${LIBCXX_CXX_ABI_LIBNAME}" STREQUAL "default"))
AND NOT LIBCXX_ABI_UNSTABLE
AND LIBCXX_ENABLE_EXCEPTIONS)
AND LIBCXX_ENABLE_EXCEPTIONS
AND LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS)
add_custom_target(check-cxx-abilist
${SYMDIFF_EXE} --only-stdlib-symbols --strict ${ABILIST_FILE}
$<TARGET_SONAME_FILE:cxx_shared>