[compiler-rt] r352411 - Revert "[CMake] Use __libc_start_main rather than fopen when checking for C library"
Petr Hosek via llvm-commits
llvm-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:
compiler-rt/trunk/cmake/config-ix.cmake
Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=352411&r1=352410&r2=352411&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Mon Jan 28 11:26:41 2019
@@ -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)
More information about the llvm-commits
mailing list