[libcxxabi] r255186 - Replace cmake check for printf with a check for fopen.

Evgeniy Stepanov via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 9 16:44:43 PST 2015


Author: eugenis
Date: Wed Dec  9 18:44:42 2015
New Revision: 255186

URL: http://llvm.org/viewvc/llvm-project?rev=255186&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:
    libcxxabi/trunk/cmake/config-ix.cmake

Modified: libcxxabi/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/cmake/config-ix.cmake?rev=255186&r1=255185&r2=255186&view=diff
==============================================================================
--- libcxxabi/trunk/cmake/config-ix.cmake (original)
+++ libcxxabi/trunk/cmake/config-ix.cmake Wed Dec  9 18:44:42 2015
@@ -39,7 +39,7 @@ check_cxx_compiler_flag(/EHa-
 check_cxx_compiler_flag(/GR-                  LIBCXXABI_HAS_NO_GR_FLAG)
 
 # Check libraries
-check_library_exists(c printf "" LIBCXXABI_HAS_C_LIB)
+check_library_exists(c fopen "" LIBCXXABI_HAS_C_LIB)
 check_library_exists(dl dladdr "" LIBCXXABI_HAS_DL_LIB)
 check_library_exists(pthread pthread_once "" LIBCXXABI_HAS_PTHREAD_LIB)
 check_library_exists(gcc_eh _Unwind_GetRegionStart "" LIBCXXABI_HAS_GCC_EH_LIB)




More information about the cfe-commits mailing list