Skip to content

Commit

Permalink
cargo: cargo.lib.name fallbacks to cargo.package.name
Browse files Browse the repository at this point in the history
  • Loading branch information
xclaesse committed Mar 4, 2024
1 parent cf0224b commit a009bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/cargo/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def _create_lib(cargo: Manifest, build: builder.Builder, crate_type: manifest.CR
dependencies.append(build.identifier(_extra_deps_varname()))

posargs: T.List[mparser.BaseNode] = [
build.string(fixup_meson_varname(cargo.package.name)),
build.string(fixup_meson_varname(cargo.lib.name or cargo.package.name)),
build.string(cargo.lib.path),
]

Expand Down

0 comments on commit a009bc9

Please sign in to comment.