Skip to content

Provide option to restrict RUSTFLAGS to non-build-dependencies #3739

Open
@Manishearth

Description

@Manishearth

Currently, setting RUSTFLAGS will compile build dependencies with the provided options as well. This means that using things like the sanitizer support may not work since the build dependencies will be compiled with sanitizers on as well, and they may fail.

This probably also means that RUSTFLAGS isn't very useful when cross compiling.

(This is making it hard to write nice wrappers for fuzzing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-dependenciesArea: [build-dependencies]A-configurationArea: cargo config files and env varsA-environment-variablesArea: environment variablesA-rustflagsArea: rustflagsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions