Skip to content

Passing target specific command line options to rustc #2284

@Zoxc

Description

@Zoxc

I'm trying to use cargo to build my kernel.

I ran into an issue with cargo rustc not being able to pass along command line arguments to all crates being used for a specific target.

For example I want to pass along --sysroot, -Z no-landing-pads and -C ar to all crates being built with --target, but not compiler plugins.

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