From 0a726413ae4f224d344dc95d9cb96122c5161e8d Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Sun, 24 May 2015 17:46:43 +0200 Subject: [PATCH] backends: Add extra args after compiler.std_warn_args. This to give a chance to the application to disable pedantic for example. --- authors.txt | 1 + backends.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/authors.txt b/authors.txt index b3f0ddc58..1bbc55784 100644 --- a/authors.txt +++ b/authors.txt @@ -16,3 +16,4 @@ mfrischknecht Matthew Bekkema Afief Halumi Thibault Saunier +Mathieu Duponchelle diff --git a/backends.py b/backends.py index 88f144dc8..c4ee0bba2 100644 --- a/backends.py +++ b/backends.py @@ -196,9 +196,9 @@ class Backend(): commands += compiler.get_always_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()) if self.environment.coredata.buildtype != 'plain': commands += compiler.get_std_warn_args() + commands += target.get_extra_args(compiler.get_language()) commands += compiler.get_buildtype_args(self.environment.coredata.buildtype) if self.environment.coredata.coverage: commands += compiler.get_coverage_args()