Skip to content

Filter invalid CARGO_CFG_ in build scripts #7933

@ehuss

Description

@ehuss

The environment variables CARGO_CFG_DEBUG_ASSERTIONS and CARGO_CFG_PROC_MACRO are set when a build script is executed. These variables have no meaning, due to the way cfg discovery is done. The build script code should probably avoid setting these two values to avoid any possible confusion.

Cargo has been issuing a warning for a little while for using these in cfg expressions, so I think it should be OK to just filter these two values entirely. cfg values are collected here, so I think just filtering them there at the source should be ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions