summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/clike.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-05-05 11:53:42 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-05-20 14:20:26 -0700
commitd04e2c2f1fcf35501a1fdc87524b890c5f367995 (patch)
tree93a9d929ecd8ac51ccb0a6e87cd35f2af376b825 /mesonbuild/compilers/mixins/clike.py
parent589a6249f0ffb0295c3f15233d1b6b3af9e4de16 (diff)
downloadmeson-d04e2c2f1fcf35501a1fdc87524b890c5f367995.tar.gz
compilers: Move b_ndebug into the compiler classes
Right now we hardcode -DNDEBUG as the value to be added for b_ndebug. Which is a not the correct behavior for non C/C++ languages. By pushing this back into the compiler classes we can change this for other languages.
Diffstat (limited to 'mesonbuild/compilers/mixins/clike.py')
-rw-r--r--mesonbuild/compilers/mixins/clike.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py
index e7b0cd2ca..01c984df1 100644
--- a/mesonbuild/compilers/mixins/clike.py
+++ b/mesonbuild/compilers/mixins/clike.py
@@ -1137,3 +1137,6 @@ class CLikeCompiler:
return self.compiles(self.attribute_check_func(name), env,
extra_args=self.get_has_func_attribute_extra_args(name))
+
+ def get_disable_assert_args(self) -> T.List[str]:
+ return ['-DNDEBUG']