From 8ee1c9a07a3a35e3ed262fbc358fd86c257a966e Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Sun, 18 Dec 2016 15:08:24 +0100 Subject: [PATCH] Do not automatically set warning flags if buildtype is 'plain' --- mesonbuild/backend/backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 10167e863..934f274d2 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)