[libc++] Make sure we don't attempt to run check-cxx-abilist when libc++ doesn't...
authorLouis Dionne <ldionne@apple.com>
Wed, 30 Sep 2020 18:58:17 +0000 (14:58 -0400)
committerLouis Dionne <ldionne@apple.com>
Wed, 30 Sep 2020 18:59:03 +0000 (14:59 -0400)
That would make the test fail spuriously because we don't generate
an ABI list for that configuration.

libcxx/lib/abi/CMakeLists.txt

index 0fa3aac..cf7457f 100644 (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>