[gegl/wip/pippin/meson] build: add check for malloc_trim



commit ab69b61e7b65e301eb232ccefa9e8d4c9b23b25c
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Aug 2 21:57:30 2019 +0200

    build: add check for malloc_trim

 meson.build | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index cb8274d27..c8dc9a274 100644
--- a/meson.build
+++ b/meson.build
@@ -147,9 +147,10 @@ graphviz    = find_program('dot',           required: get_option('graphviz'))
 ################################################################################
 # Required Dependencies
 
-config.set('HAVE_UNISTD_H',   cc.has_header('unistd.h'))
-config.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h'))
-config.set('HAVE_FSYNC',      cc.has_function('fsync'))
+config.set('HAVE_UNISTD_H',    cc.has_header('unistd.h'))
+config.set('HAVE_EXECINFO_H',  cc.has_header('execinfo.h'))
+config.set('HAVE_FSYNC',       cc.has_function('fsync'))
+config.set('HAVE_MALLOC_TRIM', cc.has_function('malloc_trim'))
 
 math    = cc.find_library('m', required: false)
 thread  = dependency('threads')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]