Go to file
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
clang [SemaCXX] Fix ICE with structure bindings to members of template 2019-01-27 19:19:59 +00:00
clang-tools-extra Fix a lit test failure after D54438 2019-01-26 21:22:58 +00:00
compiler-rt [CMake] Use __libc_start_main rather than fopen when checking for C library 2019-01-28 04:12:54 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
libcxx [CMake] Use __libc_start_main rather than fopen when checking for C library 2019-01-28 04:12:54 +00:00
libcxxabi [CMake] Use __libc_start_main rather than fopen when checking for C library 2019-01-28 04:12:54 +00:00
libunwind [CMake] Use __libc_start_main rather than fopen when checking for C library 2019-01-28 04:12:54 +00:00
lld [LLD][COFF] Partial sections 2019-01-28 01:45:35 +00:00
lldb [lldb] Update shebang python2 -> python 2019-01-26 01:05:02 +00:00
llgo Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
llvm [CMake] Use __libc_start_main rather than fopen when checking for C library 2019-01-28 04:12:54 +00:00
openmp NFC: fixed formatting to be consistent across the file 2019-01-21 16:11:43 +00:00
parallel-libs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
polly Fix/unify top comment in lib/Analysis/PolyhedralInfo.cpp 2019-01-22 12:18:38 +00:00
pstl Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
.arcconfig Add an .arcconfig for the top of the git monorepo. 2019-01-11 16:27:14 +00:00
README.md

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.