[libcxx-commits] [libcxx] r352411 - Revert "[CMake] Use __libc_start_main rather than fopen when checking for C library"

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 28 11:26:41 PST 2019


Author: phosek
Date: Mon Jan 28 11:26:41 2019
New Revision: 352411

URL: http://llvm.org/viewvc/llvm-project?rev=352411&view=rev
Log:
Revert "[CMake] Use __libc_start_main rather than fopen when checking for C library"

This reverts commit r352341: it broke the build on macOS which doesn't
seem to provide __libc_start_main in its C library.

Modified:
    libcxx/trunk/cmake/config-ix.cmake

Modified: libcxx/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/cmake/config-ix.cmake?rev=352411&r1=352410&r2=352411&view=diff
==============================================================================
--- libcxx/trunk/cmake/config-ix.cmake (original)
+++ libcxx/trunk/cmake/config-ix.cmake Mon Jan 28 11:26:41 2019
@@ -7,7 +7,7 @@ if(WIN32 AND NOT MINGW)
   # let the default linking take care of that.
   set(LIBCXX_HAS_C_LIB NO)
 else()
-  check_library_exists(c __libc_start_main "" LIBCXX_HAS_C_LIB)
+  check_library_exists(c fopen "" LIBCXX_HAS_C_LIB)
 endif()
 
 if (NOT LIBCXX_USE_COMPILER_RT)




More information about the libcxx-commits mailing list