Package metadata only used for first workspace member #54
Closed
Description
opened on Feb 1, 2020
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