Put build type warning flags at the beginning so they are overridable.

pull/221/head
Jussi Pakkanen 9 years ago
parent c1dddce4e7
commit 9d9ba50911
  1. 4
      backends.py

@ -202,10 +202,10 @@ class Backend():
def generate_basic_compiler_args(self, target, compiler): def generate_basic_compiler_args(self, target, compiler):
commands = [] commands = []
commands += compiler.get_always_args() 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': if self.environment.coredata.buildtype != 'plain':
commands += compiler.get_std_warn_args() 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 += target.get_extra_args(compiler.get_language())
commands += compiler.get_buildtype_args(self.environment.coredata.buildtype) commands += compiler.get_buildtype_args(self.environment.coredata.buildtype)
if self.environment.coredata.coverage: if self.environment.coredata.coverage:

Loading…
Cancel
Save