Skip to content

x.py rebuilds "bootstrap" a lot #94408

Closed
@RalfJung

Description

@RalfJung

When x.py is invoked both by vscode and from the terminal directly, "bootstrap" is rebuilt each time. I think in the end this is due to that line:

println!("cargo:rerun-if-env-changed=PATH");

Indeed PATH is almost certainly different between the two environments. (vscode lives inside a sandbox, it just runs too many untrusted things to be granted access to my files and keys.)

Rebuilding on every PATH change seems excessive, is that truly needed?
Cc @jyn514 @Mark-Simulacrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions