Fix Rust global and local args. Closes #5101.

pull/5136/head
Jussi Pakkanen 6 years ago
parent 8a9e1b1166
commit 4e5edff60f
  1. 2
      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')

Loading…
Cancel
Save