Skip to content

Detect common misconfigurations on error #1391

Open
@madsmtm

Description

@madsmtm

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions