Skip to content

Add a --sysroot option to build and rustc commands #2312

@Zoxc

Description

@Zoxc

When cross compiling you need to provide both a target and a sysroot (a place where all the target libraries can be found). Both cargo and rustc should provide a way to set these. rustc's --sysroot might be buggy or rust specific, see rust-lang/rust#31180 and it does not pass it on to the linker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions