Skip to content

build.rs "rerun-if-env-changed" goes out of sync with the actual use site of the env var. #70517

Closed
@eddyb

Description

@eddyb

This is still in rustc_codegen_llvm's build script:

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

But the use site has been moved here:

let install_prefix = option_env!("CFG_PREFIX").expect("CFG_PREFIX");

This means that rustc_codegen_ssa won't be rebuilt when that env var changes. For the record, I haven't seen a bug from this, was just curious where CFG_PREFIX may be used and spotted the mismatch.

cc @bjorn3

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions