Skip to content

Add a way for build scripts to be re-run if specific environment variables change #2776

@luser

Description

@luser

I hit an error building rust-openssl, and it looks like it's not fixable without adding functionality to Cargo:
sfackler/rust-openssl#406

The build script there uses OPENSSL_{LIB,INCLUDE}_DIR as inputs, but it doesn't get re-run if those variables were unset and are later set, or if their values change.

It would be good if build scripts could tell Cargo about environment variables they use as input, and then Cargo could record the status of those env vars upon build script invocation, and use them as dependencies for re-running the build script.

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