diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-27 20:51:34 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-02 16:28:40 -0400 |
commit | 671677dad16a9b13fc1dbb7b33f9ba08ebf8bdcf (patch) | |
tree | 326bba1252f3867982a7ee3282032cceb8425a0f | |
parent | 489e15a8b3210a399aa9cefcc11b9ddcf7283150 (diff) |
meson: add forgotten debug options
v2:
-rename -Dextra-debug to -Ddebug to match ./configure --debug
-rw-r--r-- | meson.build | 13 | ||||
-rw-r--r-- | meson_options.txt | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 79843c7319..133ae57cf8 100644 --- a/meson.build +++ b/meson.build @@ -613,6 +613,19 @@ conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) substs.set('SUSHELL', get_option('debug-shell')) substs.set('DEBUGTTY', get_option('debug-tty')) +debug = get_option('debug') +if debug != '' + foreach name : debug.split(',') + if name == 'hashmap' + conf.set('ENABLE_DEBUG_HASHMAP', 1) + elif name == 'mmap-cache' + conf.set('ENABLE_DEBUG_MMAP_CACHE', 1) + else + message('unknown debug option "@0@", ignoring'.format(name)) + endif + endforeach +endif + ##################################################################### threads = dependency('threads') diff --git a/meson_options.txt b/meson_options.txt index 6d40c3f806..4e99b25e63 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -34,6 +34,8 @@ option('debug-shell', type : 'string', value : '/bin/sh', description : 'path to debug shell binary') option('debug-tty', type : 'string', value : '/dev/tty9', description : 'specify the tty device for debug shell') +option('debug', type : 'string', + description : 'enable extra debugging (hashmap,mmap-cache)') option('utmp', type : 'boolean', description : 'support for utmp/wtmp log handling') |