diff options
author | James Almer <jamrial@gmail.com> | 2019-01-26 06:41:35 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-01-28 18:16:54 +0300 |
commit | c98bbeb3cf7ec6bd2545fdb8704dae87fe7cc117 (patch) | |
tree | 11593a76dff62fd870f78ebf772a67b84145cf73 /meson.build | |
parent | 0749f4b0929bf9e4f0afa5bc96a12073b55a2408 (diff) |
add a logging callback mechanism
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index ee88ba0..1c06243 100644 --- a/meson.build +++ b/meson.build @@ -70,6 +70,10 @@ if is_asm_enabled and get_option('b_sanitize') == 'memory' error('asm causes false positive with memory sanitizer. Use \'-Dbuild_asm=false\'.') endif +# Logging option +if get_option('logging') + cdata.set('CONFIG_LOG', 1) +endif # # OS/Compiler checks and defines |