Skip to content

RUSTC_WRAPPER behavior may break in future Cargo release #4873

Description

@ranger-ross

Cargo is planning to make some changes in rust-lang/cargo#15010 which will likely increase the total number of args passed to rustc, making it more likely that arg files are used in the rustc invocation.

Argfiles are an existing rustc feature but generally most projects are small enough to not need them.

To avoid potential breakage, I would suggest adding support for arg files in https://github.com/otter-sec/anchor/blob/474204eebef7a48373eb4fca441f4c54b8e04348/cli/src/debugger/rustc_wrapper.rs

Sccache recently added support for argfiles in mozilla/sccache#2782 that can be used for reference.

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