summaryrefslogtreecommitdiff
path: root/libcxxabi/cmake
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-10-04 18:32:46 +0000
committerLouis Dionne <ldionne@apple.com>2019-10-04 18:32:46 +0000
commitce452b1ca9fdb12604db3dc2059246e189e55d7b (patch)
tree2a8a580abd323cf0770f5a887540b50ac48af77c /libcxxabi/cmake
parent5fd467feb813e9999efe3558da434cb038213582 (diff)
downloadllvm-ce452b1ca9fdb12604db3dc2059246e189e55d7b.tar.gz
[libc++abi] Link against libSystem on Apple platforms
On Apple platforms, libSystem is an umbrella for all other system libraries, and libpthread (and friends) are actually just symlinks to libSystem. llvm-svn: 373770
Diffstat (limited to 'libcxxabi/cmake')
-rw-r--r--libcxxabi/cmake/config-ix.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxxabi/cmake/config-ix.cmake b/libcxxabi/cmake/config-ix.cmake
index 94f89bedd976..496ed3463755 100644
--- a/libcxxabi/cmake/config-ix.cmake
+++ b/libcxxabi/cmake/config-ix.cmake
@@ -75,3 +75,4 @@ check_library_exists(dl dladdr "" LIBCXXABI_HAS_DL_LIB)
check_library_exists(pthread pthread_once "" LIBCXXABI_HAS_PTHREAD_LIB)
check_library_exists(c __cxa_thread_atexit_impl ""
LIBCXXABI_HAS_CXA_THREAD_ATEXIT_IMPL)
+check_library_exists(System write "" LIBCXXABI_HAS_SYSTEM_LIB)