From 4e5edff60f4874866d16e7ec43c5927b6af03f8c Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 21 Mar 2019 21:20:26 +0200 Subject: [PATCH] Fix Rust global and local args. Closes #5101. --- mesonbuild/backend/ninjabackend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 7f36b7b0b..f6ff72258 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1193,6 +1193,8 @@ int dummy; args += ['--crate-name', target.name] args += rustc.get_buildtype_args(self.get_option_for_target('buildtype', target)) args += rustc.get_debug_args(self.get_option_for_target('debug', target)) + args += self.build.get_global_args(rustc, target.is_cross) + args += self.build.get_project_args(rustc, target.subproject, target.is_cross) depfile = os.path.join(target.subdir, target.name + '.d') args += ['--emit', 'dep-info={}'.format(depfile), '--emit', 'link'] args += target.get_extra_args('rust')