Explorar o código

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.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@352411 91177308-0d34-0410-b5e6-96231b3b80d8
Petr Hosek %!s(int64=6) %!d(string=hai) anos
pai
achega
1d9cc94e89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmake/config-ix.cmake

+ 1 - 1
cmake/config-ix.cmake

@@ -7,7 +7,7 @@ if(WIN32 AND NOT MINGW)
   # let the default linking take care of that.
   # let the default linking take care of that.
   set(LIBCXX_HAS_C_LIB NO)
   set(LIBCXX_HAS_C_LIB NO)
 else()
 else()
-  check_library_exists(c __libc_start_main "" LIBCXX_HAS_C_LIB)
+  check_library_exists(c fopen "" LIBCXX_HAS_C_LIB)
 endif()
 endif()
 
 
 if (NOT LIBCXX_USE_COMPILER_RT)
 if (NOT LIBCXX_USE_COMPILER_RT)