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

Better error message when failing on unknown targets #1313

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

madsmtm
Copy link
Collaborator

@madsmtm madsmtm commented Dec 4, 2024

Based on feedback in #1312.

This assumes that the dev guide will be updated as well, haven't submitted a PR for that yet though.

CC @flba-eb, wdyt?

@madsmtm
Copy link
Collaborator Author

madsmtm commented Dec 4, 2024

Hmm, actually, I'm not sure what to update the rustc dev guide with? It already has a section on patching crates, and that section mentions both libc and cc?

What would you suggest? Just make it more prominent? Or does it not really matter if we have this error message in cc-rs?

@jonathanpallant
Copy link

The proposed error text looks great, and would have bypassed the ~90 minutes of debugging I had to do working on a new target.

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the new error message is much better!

@NobodyXu NobodyXu merged commit b62d8c7 into main Dec 4, 2024
54 checks passed
@NobodyXu NobodyXu deleted the better-errors branch December 4, 2024 12:49
@flba-eb
Copy link
Contributor

flba-eb commented Dec 5, 2024

This is fantastic, thank you very much! ❤️

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

Successfully merging this pull request may close these issues.

4 participants