diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-12-10 00:45:18 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-12-10 00:45:18 +0000 |
commit | 2abfe726b2a1896dbe3966e26689752b54ab0617 (patch) | |
tree | 25ac080430b70738bd99e254c36932e072887bd6 /libcxx | |
parent | 3e01d1b32e85929b3b9f527cac67c13f0180de19 (diff) | |
download | bcm5719-llvm-2abfe726b2a1896dbe3966e26689752b54ab0617.tar.gz bcm5719-llvm-2abfe726b2a1896dbe3966e26689752b54ab0617.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: 255187
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/cmake/config-ix.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/cmake/config-ix.cmake b/libcxx/cmake/config-ix.cmake index 3b747b2e411..c05597ea73d 100644 --- a/libcxx/cmake/config-ix.cmake +++ b/libcxx/cmake/config-ix.cmake @@ -13,7 +13,7 @@ check_cxx_compiler_flag(/GR- LIBCXX_HAS_NO_GR_FLAG) # Check libraries check_library_exists(pthread pthread_create "" LIBCXX_HAS_PTHREAD_LIB) -check_library_exists(c printf "" LIBCXX_HAS_C_LIB) +check_library_exists(c fopen "" LIBCXX_HAS_C_LIB) check_library_exists(m ccos "" LIBCXX_HAS_M_LIB) check_library_exists(rt clock_gettime "" LIBCXX_HAS_RT_LIB) check_library_exists(gcc_s __gcc_personality_v0 "" LIBCXX_HAS_GCC_S_LIB) |