[llvm-commits] [llvm] r72873 - in /llvm/trunk: cmake/config-ix.cmake include/llvm/Config/config.h.cmake

Howard Su howard0su at gmail.com
Thu Jun 4 16:58:59 PDT 2009


Better we can also fix others, like sbrk. Under freebdsd, use CMAKE will
undef sbrk while freebsd do have it.

On Fri, Jun 5, 2009 at 1:22 AM, Douglas Gregor <dgregor at apple.com> wrote:

> Author: dgregor
> Date: Thu Jun  4 12:22:52 2009
> New Revision: 72873
>
> URL: http://llvm.org/viewvc/llvm-project?rev=72873&view=rev
> Log:
> Properly detect malloc_zone_statistics in CMake build system
>
> Modified:
>    llvm/trunk/cmake/config-ix.cmake
>    llvm/trunk/include/llvm/Config/config.h.cmake
>
> Modified: llvm/trunk/cmake/config-ix.cmake
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=72873&r1=72872&r2=72873&view=diff
>
>
> ==============================================================================
> --- llvm/trunk/cmake/config-ix.cmake (original)
> +++ llvm/trunk/cmake/config-ix.cmake Thu Jun  4 12:22:52 2009
> @@ -58,6 +58,8 @@
>  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)
>
>
> Modified: llvm/trunk/include/llvm/Config/config.h.cmake
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=72873&r1=72872&r2=72873&view=diff
>
>
> ==============================================================================
> --- llvm/trunk/include/llvm/Config/config.h.cmake (original)
> +++ llvm/trunk/include/llvm/Config/config.h.cmake Thu Jun  4 12:22:52 2009
> @@ -228,7 +228,7 @@
>  #cmakedefine HAVE_MALLOC_MALLOC_H ${HAVE_MALLOC_MALLOC_H}
>
>  /* Define to 1 if you have the `malloc_zone_statistics' function. */
> -#undef HAVE_MALLOC_ZONE_STATISTICS
> +#cmakedefine HAVE_MALLOC_ZONE_STATISTICS ${HAVE_MALLOC_ZONE_STATISTICS}
>
>  /* Define to 1 if you have the `memcpy' function. */
>  #undef HAVE_MEMCPY
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
-Howard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090605/4746055f/attachment.html>


More information about the llvm-commits mailing list