llvm.org GIT mirror llvm / d0f8c40
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/llvm/trunk@352411 91177308-0d34-0410-b5e6-96231b3b80d8 Petr Hosek 1 year, 9 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9797 include(CheckLibraryExists)
9898 include(CheckCCompilerFlag)
100 check_library_exists(c __libc_start_main "" LLVM_HAS_C_LIB)
100 check_library_exists(c fopen "" LLVM_HAS_C_LIB)
101101 check_c_compiler_flag(-nodefaultlibs LLVM_HAS_NODEFAULTLIBS_FLAG)
103103 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nodefaultlibs")