Skip to content

Commit

Permalink
Revert "[CMake] Use __libc_start_main rather than fopen when checking…
Browse files Browse the repository at this point in the history
… 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/compiler-rt/trunk@352411 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
petrhosek committed Jan 28, 2019
1 parent 4da7e19 commit 6007bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function(check_linker_flag flag out_var)
cmake_pop_check_state()
endfunction()

check_library_exists(c __libc_start_main "" COMPILER_RT_HAS_LIBC)
check_library_exists(c fopen "" COMPILER_RT_HAS_LIBC)
if (COMPILER_RT_USE_BUILTINS_LIBRARY)
include(HandleCompilerRT)
find_compiler_rt_library(builtins COMPILER_RT_BUILTINS_LIBRARY)
Expand Down

0 comments on commit 6007bbd

Please sign in to comment.