diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-11-18 12:28:36 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-12-22 12:01:05 +0100 |
| commit | 8d2676a49bdce134e3ee9d97f00e627b442dfa40 (patch) | |
| tree | 432fbce714395f6a36278095b4318fa54704d25d /mesonbuild/cargo | |
| parent | c2cbb7001129ee92d966f5060fbf0459eaa29550 (diff) | |
| download | meson-8d2676a49bdce134e3ee9d97f00e627b442dfa40.tar.gz | |
modules: rust: add package.override_dependency method
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/cargo')
| -rw-r--r-- | mesonbuild/cargo/interpreter.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/mesonbuild/cargo/interpreter.py b/mesonbuild/cargo/interpreter.py index fcae28d27..5b003c6b4 100644 --- a/mesonbuild/cargo/interpreter.py +++ b/mesonbuild/cargo/interpreter.py @@ -813,9 +813,6 @@ class Interpreter: 'rust_args': build.identifier(_extra_args_varname()), } - depname_suffix = '' if lib_type == 'c' else '-rs' - depname = _dependency_name(pkg.manifest.package.name, pkg.manifest.package.api, depname_suffix) - if lib_type == 'proc-macro': lib = build.method('proc_macro', build.identifier('pkg_obj'), posargs, kwargs) else: @@ -843,11 +840,9 @@ class Interpreter: ), build.method( 'override_dependency', - build.identifier('meson'), - [ - build.string(depname), - build.identifier('dep'), - ], + build.identifier('pkg_obj'), + [build.identifier('dep')], + {'rust_abi': build.string(lib_type)} ), ] |
