summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-05-13 12:57:50 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-05-13 12:57:50 +0000
commit2d0b1f8f92e7dfb4a69836c29113135b108c8056 (patch)
treef9cdc50f81c37f7abb63720dc352630383102a01 /cmake
parenta7e0cb9c95f2a7560029bb492af35cdfb8e44b6a (diff)
[Sanitizer/ASan tests] Automatically detect the presence of libstdc++
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config-ix.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 9902b44f1..ea89a997c 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -45,6 +45,7 @@ check_cxx_compiler_flag(/wd4722 COMPILER_RT_HAS_WD4722_FLAG)
check_symbol_exists(__func__ "" COMPILER_RT_HAS_FUNC_SYMBOL)
# Libraries.
+check_library_exists(stdc++ __cxa_pure_virtual "" COMPILER_RT_HAS_LIBSTDCXX)
check_library_exists(m pow "" COMPILER_RT_HAS_LIBM)
check_library_exists(dl dlopen "" COMPILER_RT_HAS_LIBDL)
check_library_exists(pthread pthread_create "" COMPILER_RT_HAS_LIBPTHREAD)