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 | 12f4b86808bf0874e222605c93c6e2be56b81bf5 (patch) | |
| tree | fba3d8e00f40c22159563688b5ef6b1e8d700fc0 /libcxx/cmake | |
| parent | 2e35dc5185841d6e7a2653becf47f731e5f7ad5a (diff) | |
| download | bcm5719-llvm-12f4b86808bf0874e222605c93c6e2be56b81bf5.tar.gz bcm5719-llvm-12f4b86808bf0874e222605c93c6e2be56b81bf5.zip | |
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 'libcxx/cmake')
| -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 657b036dc24..730ee7e164a 100644 --- a/libcxx/cmake/config-ix.cmake +++ b/libcxx/cmake/config-ix.cmake @@ -7,7 +7,7 @@ if(WIN32 AND NOT MINGW) # let the default linking take care of that. set(LIBCXX_HAS_C_LIB NO) else() - check_library_exists(c __libc_start_main "" LIBCXX_HAS_C_LIB) + check_library_exists(c fopen "" LIBCXX_HAS_C_LIB) endif() if (NOT LIBCXX_USE_COMPILER_RT) |

