llvm-project/libcxxabi
Petr Hosek b667153cf6 [CMake] Use __libc_start_main rather than fopen when checking for C library
The check_library_exists CMake uses a custom symbol definition. This
is a problem when checking for C library symbols because Clang
recognizes many of them as builtins, and returns the
-Wbuiltin-requires-header (or -Wincompatible-library-redeclaration)
error. When building with -Werror which is the default, this causes
the check_library_exists check fail making the build think that C
library isn't available.

To avoid this issue, we should use a symbol that isn't recognized by
Clang and wouldn't cause the same issue. __libc_start_main seems like
reasonable choice that fits the bill.

Differential Revision: https://reviews.llvm.org/D57142

llvm-svn: 352341
2019-01-28 04:12:54 +00:00
..
cmake [CMake] Use __libc_start_main rather than fopen when checking for C library 2019-01-28 04:12:54 +00:00
fuzz add cxa_demangle_fuzzer 2016-12-28 03:28:29 +00:00
include Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
lib
src [libcxxabi] Support building hermetic static library 2019-01-24 03:18:29 +00:00
test Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
www Update docs to reference new libc++ mailing lists. 2018-09-22 19:52:12 +00:00
.arcconfig [libcxxabi] Set up .arcconfig to point to new Diffusion CXXA repository 2017-12-04 23:14:03 +00:00
.clang-format Fully Reformat fallback_malloc.cpp 2017-03-04 03:23:15 +00:00
.gitignore .gitignore: ignore vim swap files 2015-12-04 02:15:02 +00:00
CMakeLists.txt [libcxxabi] Support building hermetic static library 2019-01-24 03:18:29 +00:00
CREDITS.TXT Try again, this time with the correct address 2017-12-29 19:26:28 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00