diff options
author | Aleksey Filippov <alekseyf@google.com> | 2018-03-21 14:58:50 +0000 |
---|---|---|
committer | Aleksey Filippov <alekseyf@google.com> | 2018-03-21 17:30:06 +0000 |
commit | 2febb99eee8ed71c9122db88ca58dd33be0b9550 (patch) | |
tree | 2f795d97fe07813d5e5d87fd191961f279d26c00 /mesonbuild/compilers/compilers.py | |
parent | af0b569ced2bc3d0eb8d30bf4bc26cdee975ea60 (diff) | |
download | meson-2febb99eee8ed71c9122db88ca58dd33be0b9550.zip meson-2febb99eee8ed71c9122db88ca58dd33be0b9550.tar.gz meson-2febb99eee8ed71c9122db88ca58dd33be0b9550.tar.bz2 |
Fix b_ndebug=if-release option
Provide get_{type}_options_for_target() methods that unite {type} and builtin options.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index f8dfc96..65c942b 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -315,7 +315,9 @@ def get_base_compile_args(options, compiler): except KeyError: pass try: - if options['b_ndebug'].value == 'true' or (options['b_ndebug'].value == 'if-release' and options['buildtype'] == 'release'): + if (options['b_ndebug'].value == 'true' or + (options['b_ndebug'].value == 'if-release' and + options['buildtype'].value == 'release')): args += ['-DNDEBUG'] except KeyError: pass |