mirror of
https://github.com/RPCS3/llvm.git
synced 2024-10-07 00:43:37 +00:00
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
This commit is contained in:
parent
728ff6c67c
commit
d0f8c40a1e
@ -98,7 +98,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
include(CheckLibraryExists)
|
||||
include(CheckCCompilerFlag)
|
||||
|
||||
check_library_exists(c __libc_start_main "" LLVM_HAS_C_LIB)
|
||||
check_library_exists(c fopen "" LLVM_HAS_C_LIB)
|
||||
check_c_compiler_flag(-nodefaultlibs LLVM_HAS_NODEFAULTLIBS_FLAG)
|
||||
if(LLVM_HAS_NODEFAULTLIBS_FLAG)
|
||||
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nodefaultlibs")
|
||||
|
Loading…
Reference in New Issue
Block a user