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

Detect common misconfigurations on error #1391

Open
madsmtm opened this issue Feb 5, 2025 · 0 comments
Open

Detect common misconfigurations on error #1391

madsmtm opened this issue Feb 5, 2025 · 0 comments

Comments

@madsmtm
Copy link
Collaborator

madsmtm commented Feb 5, 2025

It is fairly common when cross-compiling to:

  • Try to use GCC configured for the host system.
  • Not have headers for the target system.

It would be nice if cc-rs could detect this (maybe by inspecting the error message), and give an extra note in those cases that guides the user in what they need to do.

(This is only one part of the cross-compilation story; a linker and libraries / linker stubs are also necessary, but that should be up to rustc to detect and warn for such incompatibilities).

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

No branches or pull requests

1 participant