Author: eugenis Date: Wed Dec 9 18:47:08 2015 New Revision: 255188 URL: http://llvm.org/viewvc/llvm-project?rev=255188&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: libunwind/trunk/cmake/config-ix.cmake Modified: libunwind/trunk/cmake/config-ix.cmake URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/cmake/config-ix.cmake?rev=255188&r1=255187&r2=255188&view=diff ============================================================================== --- libunwind/trunk/cmake/config-ix.cmake (original) +++ libunwind/trunk/cmake/config-ix.cmake Wed Dec 9 18:47:08 2015 @@ -39,7 +39,7 @@ check_cxx_compiler_flag(/EHs- check_cxx_compiler_flag(/EHa- LIBUNWIND_HAS_NO_EHA_FLAG) check_cxx_compiler_flag(/GR- LIBUNWIND_HAS_NO_GR_FLAG) -check_library_exists(c printf "" LIBUNWIND_HAS_C_LIB) +check_library_exists(c fopen "" LIBUNWIND_HAS_C_LIB) check_library_exists(dl dladdr "" LIBUNWIND_HAS_DL_LIB) check_library_exists(pthread pthread_once "" LIBUNWIND_HAS_PTHREAD_LIB) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits