Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to host platform for cargo metadata #6912

Merged
merged 3 commits into from
Dec 17, 2020

Conversation

jonhoo
Copy link
Contributor

@jonhoo jonhoo commented Dec 17, 2020

This modifies the logic for calling cargo metadata so that it will use
the host platform if no explicit target platform is given. This is
needed since cargo metadata defaults to outputting information for all
targets.

Fixes #6908.

This modifies the logic for calling cargo metadata so that it will use
the host platform if no explicit target platform is given. This is
needed since cargo metadata defaults to outputting information for _all_
targets.

Fixes rust-lang#6908.
@matklad
Copy link
Member

matklad commented Dec 17, 2020

Makes sense!

In generally, cargo metadata is fundamentally lossy (what we actually want to get our hands on is the internal unit-graph in cargo), but this should help us to be less incorrect.

r=me with prefix stripping simplified!

bors d+

@bors
Copy link
Contributor

bors bot commented Dec 17, 2020

✌️ jonhoo can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

jonhoo and others added 2 commits December 17, 2020 13:18
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
@jonhoo
Copy link
Contributor Author

jonhoo commented Dec 17, 2020

🎉

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 17, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only use metadata for current target
2 participants