diff options
author | Petr Hosek <phosek@chromium.org> | 2019-01-28 19:26:41 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-01-28 19:26:41 +0000 |
commit | d3b53a90e407590109144d48b750a120e5d865a8 (patch) | |
tree | 36895b0007a15567ee530fbdb2b514b0a6c09663 | |
parent | a450097b65476c0200ffb0df16859aa6a9474f86 (diff) | |
download | libcxxabi-d3b53a90e407590109144d48b750a120e5d865a8.tar.gz |
Revert "[CMake] Use __libc_start_main rather than fopen when checking for C library"
This reverts commit r352341: it broke the build on macOS which doesn't
seem to provide __libc_start_main in its C library.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@352411 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/config-ix.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 4be7adc..379b554 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -2,7 +2,7 @@ include(CheckLibraryExists) include(CheckCCompilerFlag) include(CheckCXXCompilerFlag) -check_library_exists(c __libc_start_main "" LIBCXXABI_HAS_C_LIB) +check_library_exists(c fopen "" LIBCXXABI_HAS_C_LIB) if (NOT LIBCXXABI_USE_COMPILER_RT) check_library_exists(gcc_s __gcc_personality_v0 "" LIBCXXABI_HAS_GCC_S_LIB) endif () |