aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-07-20 23:32:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-08-22 23:22:48 +0300
commit54aed1a92c282b88060a32586d47fd86a4866f03 (patch)
tree59cdcebd6d7d075a7145b2e9c3b45692a13ccf06 /mesonbuild/backend/backends.py
parent6cd71a8033f54fe12e7f2d48fb660fee29e7efb9 (diff)
downloadmeson-54aed1a92c282b88060a32586d47fd86a4866f03.zip
meson-54aed1a92c282b88060a32586d47fd86a4866f03.tar.gz
meson-54aed1a92c282b88060a32586d47fd86a4866f03.tar.bz2
Added "native" kwarg to add_XXX_args. Closes #3669.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index df72eff..bdc3fad 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -535,10 +535,10 @@ class Backend:
commands += compiler.get_optimization_args(self.get_option_for_target('optimization', target))
commands += compiler.get_debug_args(self.get_option_for_target('debug', target))
# Add compile args added using add_project_arguments()
- commands += self.build.get_project_args(compiler, target.subproject)
+ commands += self.build.get_project_args(compiler, target.subproject, target.is_cross)
# Add compile args added using add_global_arguments()
# These override per-project arguments
- commands += self.build.get_global_args(compiler)
+ commands += self.build.get_global_args(compiler, target.is_cross)
if not target.is_cross:
# Compile args added from the env: CFLAGS/CXXFLAGS, etc. We want these
# to override all the defaults, but not the per-target compile args.