[compiler-rt] r255189 - Replace cmake check for printf with a check for fopen.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 16:47:51 PST 2015


Author: eugenis
Date: Wed Dec  9 18:47:50 2015
New Revision: 255189

URL: http://llvm.org/viewvc/llvm-project?rev=255189&view=rev
Log:
Replace cmake check for printf with a check for fopen.

Printf is a builtin, and the check fails with -Werror because of a clang
warning about an incompatible redeclaration.

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=255189&r1=255188&r2=255189&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Wed Dec  9 18:47:50 2015
@@ -68,7 +68,7 @@ check_cxx_compiler_flag(/wd4800 COMPILER
 check_symbol_exists(__func__ "" COMPILER_RT_HAS_FUNC_SYMBOL)
 
 # Libraries.
-check_library_exists(c printf "" COMPILER_RT_HAS_LIBC)
+check_library_exists(c fopen "" COMPILER_RT_HAS_LIBC)
 check_library_exists(dl dlopen "" COMPILER_RT_HAS_LIBDL)
 check_library_exists(rt shm_open "" COMPILER_RT_HAS_LIBRT)
 check_library_exists(m pow "" COMPILER_RT_HAS_LIBM)




More information about the llvm-commits mailing list