summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-08-22 12:26:34 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-08-22 12:26:34 +0000
commit77617ea7032c250b489715faad53f8ab6d389b65 (patch)
treeea6314dbd6dc51398ac44a31c35517058e18d4a7 /cmake
parented07038fa02934625a58da1c2e29d0ebb454fdab (diff)
[ASan] Use check_library_exists to determine if libc/libstdc++ are available
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@216264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config-ix.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 154092fd5..ee9a7bf60 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -45,9 +45,11 @@ check_cxx_compiler_flag(/wd4722 COMPILER_RT_HAS_WD4722_FLAG)
check_symbol_exists(__func__ "" COMPILER_RT_HAS_FUNC_SYMBOL)
# Libraries.
-check_library_exists(m pow "" COMPILER_RT_HAS_LIBM)
+check_library_exists(c printf "" COMPILER_RT_HAS_LIBC)
check_library_exists(dl dlopen "" COMPILER_RT_HAS_LIBDL)
+check_library_exists(m pow "" COMPILER_RT_HAS_LIBM)
check_library_exists(pthread pthread_create "" COMPILER_RT_HAS_LIBPTHREAD)
+check_library_exists(stdc++ __cxa_throw "" COMPILER_RT_HAS_LIBSTDCXX)
# Architectures.