summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-04 17:22:52 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-04 17:22:52 +0000
commitef23d711bc4ff72799693f40c15b29cfdabd89a0 (patch)
treeef2cc94b698bd4f401aa38059068d75e63ace3d9 /cmake
parent77b81fe487de709d41dfcc97bbb2941ae1bb80af (diff)
downloadllvm-ef23d711bc4ff72799693f40c15b29cfdabd89a0.tar.gz
llvm-ef23d711bc4ff72799693f40c15b29cfdabd89a0.tar.bz2
llvm-ef23d711bc4ff72799693f40c15b29cfdabd89a0.tar.xz
Properly detect malloc_zone_statistics in CMake build system
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 0c903a1902..7cddf59343 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -58,6 +58,8 @@ check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H)
check_symbol_exists(ceilf math.h HAVE_CEILF)
check_symbol_exists(floorf math.h HAVE_FLOORF)
check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO)
+check_symbol_exists(malloc_zone_statistics malloc/malloc.h
+ HAVE_MALLOC_ZONE_STATISTICS)
check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK)
check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL)