aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend
diff options
context:
space:
mode:
authorMatthias Klumpp <matthias@tenstral.net>2016-12-18 15:08:24 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-23 00:27:33 +0200
commit8ee1c9a07a3a35e3ed262fbc358fd86c257a966e (patch)
tree996ec64c68b77720fd64e76d5ab17addc21064ae /mesonbuild/backend
parent18c38df875ed99324c74dea2c6d9765f25c10ff8 (diff)
downloadmeson-8ee1c9a07a3a35e3ed262fbc358fd86c257a966e.zip
meson-8ee1c9a07a3a35e3ed262fbc358fd86c257a966e.tar.gz
meson-8ee1c9a07a3a35e3ed262fbc358fd86c257a966e.tar.bz2
Do not automatically set warning flags if buildtype is 'plain'
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 10167e8..934f274 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -338,7 +338,7 @@ class Backend():
commands += compiler.get_always_args()
if no_warn_args:
commands += compiler.get_no_warn_args()
- else:
+ elif self.environment.coredata.get_builtin_option('buildtype') != 'plain':
commands += compiler.get_warn_args(self.environment.coredata.get_builtin_option('warning_level'))
commands += compiler.get_option_compile_args(self.environment.coredata.compiler_options)
commands += self.build.get_global_args(compiler)