diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2019-07-28 09:21:47 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-07-28 09:21:53 +0100 |
commit | 04848c98f217b3fa1fc2a49bce2649895e705611 (patch) | |
tree | f9207ec9186137d7c1f30ba0dfe8a00b3c83e29a /src/lib/eina/meson.build | |
parent | bc955f35bb5a7fc88133fe811c48123a9b49f8f0 (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 '')
-rw-r--r-- | src/lib/eina/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build index b93e46802c..7866323742 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 | |||
299 | endif | 299 | endif |
300 | 300 | ||
301 | if debug_threads or get_option('debug-threads') | 301 | if 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 | ||
303 | endif | 305 | endif |
304 | 306 | ||
305 | eina_config.set('EINA_SIZEOF_WCHAR_T', cc.sizeof('wchar_t', prefix : '#include<wchar.h>')) | 307 | eina_config.set('EINA_SIZEOF_WCHAR_T', cc.sizeof('wchar_t', prefix : '#include<wchar.h>')) |