summaryrefslogtreecommitdiff
path: root/libcxxabi/cmake
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-01-28 19:26:41 +0000
committerPetr Hosek <phosek@chromium.org>2019-01-28 19:26:41 +0000
commit12f4b86808bf0874e222605c93c6e2be56b81bf5 (patch)
treefba3d8e00f40c22159563688b5ef6b1e8d700fc0 /libcxxabi/cmake
parent2e35dc5185841d6e7a2653becf47f731e5f7ad5a (diff)
downloadllvm-12f4b86808bf0874e222605c93c6e2be56b81bf5.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. llvm-svn: 352411
Diffstat (limited to 'libcxxabi/cmake')
-rw-r--r--libcxxabi/cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/cmake/config-ix.cmake b/libcxxabi/cmake/config-ix.cmake
index 4be7adc81dd4..379b55477497 100644
--- a/libcxxabi/cmake/config-ix.cmake
+++ b/libcxxabi/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 ()