From 9d9ba50911d1a968c7f21b2e0d80d91715e54e0c Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 6 Aug 2015 22:12:32 +0200 Subject: [PATCH] Put build type warning flags at the beginning so they are overridable. --- backends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends.py b/backends.py index 3052ee641..760bc52bb 100644 --- a/backends.py +++ b/backends.py @@ -202,10 +202,10 @@ class Backend(): def generate_basic_compiler_args(self, target, compiler): commands = [] commands += compiler.get_always_args() - commands += self.build.get_global_args(compiler) - commands += self.environment.coredata.external_args[compiler.get_language()] if self.environment.coredata.buildtype != 'plain': commands += compiler.get_std_warn_args() + commands += self.build.get_global_args(compiler) + commands += self.environment.coredata.external_args[compiler.get_language()] commands += target.get_extra_args(compiler.get_language()) commands += compiler.get_buildtype_args(self.environment.coredata.buildtype) if self.environment.coredata.coverage: