Skip to content

Conversation

ahlinc
Copy link
Contributor

@ahlinc ahlinc commented Nov 28, 2023

This PR fixes an issue that if the Build instance configured with disabled cargo metadata production this doesn't have an impact on the internally used Build instance and for every compiler flag check the cargo metadata is still produced and printed to the stdout.

It's expected that the bellow configuration on the client code shouldn't produce any cargo metadata output:

let mut cfg = cc::Build::new();
cfg.cargo_metadata(false);

@NobodyXu NobodyXu merged commit bfd68f2 into rust-lang:main Nov 29, 2023
@NobodyXu
Copy link
Collaborator

Thank you!

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.

3 participants