summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-07-28 09:21:47 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-28 09:21:53 +0100
commit04848c98f217b3fa1fc2a49bce2649895e705611 (patch)
treef9207ec9186137d7c1f30ba0dfe8a00b3c83e29a /src/lib/eina
parentbc955f35bb5a7fc88133fe811c48123a9b49f8f0 (diff)
Eina: define EINA_HAVE_DEBUG_THREADS only if backtrace() in execinfo.h is available
Summary: fix compilation on systems where backtrace() in execinfo.h is not available Test Plan: compilation on Windows Reviewers: zmike, cedric, raster Reviewed By: cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9392
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build
index b93e468..7866323 100644
--- a/src/lib/eina/meson.build
+++ b/src/lib/eina/meson.build
@@ -299,7 +299,9 @@ if cc.has_header_symbol(pthread_np_header_file, 'pthread_attr_setaffinity_np', a
299endif 299endif
300 300
301if debug_threads or get_option('debug-threads') 301if debug_threads or get_option('debug-threads')
302 eina_config.set('EINA_HAVE_DEBUG_THREADS', '1') 302 if cc.has_header_symbol('execinfo.h', 'backtrace')
303 eina_config.set('EINA_HAVE_DEBUG_THREADS', '1')
304 endif
303endif 305endif
304 306
305eina_config.set('EINA_SIZEOF_WCHAR_T', cc.sizeof('wchar_t', prefix : '#include<wchar.h>')) 307eina_config.set('EINA_SIZEOF_WCHAR_T', cc.sizeof('wchar_t', prefix : '#include<wchar.h>'))