summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-12-10 00:47:08 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-12-10 00:47:08 +0000
commit9b44fa87f35921c55429f178917098570f7fba6a (patch)
treeddc0cf02719238b9f06cfd60bdd1c483d234f996
parent2abfe726b2a1896dbe3966e26689752b54ab0617 (diff)
downloadbcm5719-llvm-9b44fa87f35921c55429f178917098570f7fba6a.tar.gz
bcm5719-llvm-9b44fa87f35921c55429f178917098570f7fba6a.zip
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. llvm-svn: 255188
-rw-r--r--libunwind/cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/cmake/config-ix.cmake b/libunwind/cmake/config-ix.cmake
index a36f978e8fb..32669e0a75b 100644
--- a/libunwind/cmake/config-ix.cmake
+++ b/libunwind/cmake/config-ix.cmake
@@ -39,7 +39,7 @@ check_cxx_compiler_flag(/EHs- LIBUNWIND_HAS_NO_EHS_FLAG)
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)
OpenPOWER on IntegriCloud