[libcxx] r286792 - Fix ABI configuration detection on OS X

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 13 19:03:13 PST 2016


Author: ericwf
Date: Sun Nov 13 21:03:13 2016
New Revision: 286792

URL: http://llvm.org/viewvc/llvm-project?rev=286792&view=rev
Log:
Fix ABI configuration detection on OS X

Modified:
    libcxx/trunk/lib/abi/CMakeLists.txt

Modified: libcxx/trunk/lib/abi/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/lib/abi/CMakeLists.txt?rev=286792&r1=286791&r2=286792&view=diff
==============================================================================
--- libcxx/trunk/lib/abi/CMakeLists.txt (original)
+++ libcxx/trunk/lib/abi/CMakeLists.txt Sun Nov 13 21:03:13 2016
@@ -4,13 +4,15 @@
 if (DEFINED TARGET_TRIPLE
     AND EXISTS "${CMAKE_CURRENT_LIST_DIR}/${TARGET_TRIPLE}.abilist"
     AND TARGET cxx_shared
-    AND "${LIBCXX_CXX_ABI_LIBNAME}" STREQUAL "libcxxabi"
+    AND ("${LIBCXX_CXX_ABI_LIBNAME}" STREQUAL "libcxxabi" OR
+         (APPLE AND "${LIBCXX_CXX_ABI_LIBNAME}" STREQUAL "none"))
     AND NOT LIBCXX_ABI_UNSTABLE
     AND LIBCXX_ABI_VERSION EQUAL "1")
     set(LIBCXX_HAS_ABILIST_CONFIGURATION 1 CACHE INTERNAL "")
 else()
     if (NOT DEFINED LIBCXX_HAS_ABILIST_CONFIGURATION)
-        message(STATUS "libc++ configuration differs from the abilist configuration. check-cxx-abilist target is not supported")
+        message(STATUS "libc++ configuration differs from the abilist configuration. "
+                "check-cxx-abilist target is not supported")
     endif()
     set(LIBCXX_HAS_ABILIST_CONFIGURATION 0 CACHE INTERNAL "")
 endif()




More information about the cfe-commits mailing list