Skip to content

Package metadata only used for first workspace member #54

Closed
@stevecheckoway

Description

I'm trying to specify the sysroot_path to use because I'd like several crates in a workspace to use the same sysroot. cargo-xbuild reads the metadata for the first crate mentioned in the workspace's members, rather than the actual crate being compiled. This can lead to the wrong sysroot_path being used if the first crate has a different sysroot_path from the crate being compiled.

I'm pretty sure https://github.com/rust-osdev/cargo-xbuild/blob/master/src/config.rs#L19 is the offending line, although I'm not familiar with how the appropriate information is passed to cargo subcommands, if at all.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions