Skip to content

Commit

Permalink
Merge pull request #340 from dtolnay/depinfo
Browse files Browse the repository at this point in the history
Include env-dep:RUSTC_BOOTSTRAP in dep-info for sccache
  • Loading branch information
dtolnay authored Jan 2, 2024
2 parents 04774c0 + 17e252b commit 60705a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
.arg("--edition=2018")
.arg("--crate-name=anyhow")
.arg("--crate-type=lib")
.arg("--emit=metadata")
.arg("--emit=dep-info,metadata")
.arg("--out-dir")
.arg(out_dir)
.arg(probefile);
Expand Down
3 changes: 3 additions & 0 deletions build/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ impl Error for MyError {
}

const _: fn(&dyn Error) -> Option<&Backtrace> = |err| error::request_ref::<Backtrace>(err);

// Include in sccache cache key.
const _: Option<&str> = option_env!("RUSTC_BOOTSTRAP");

0 comments on commit 60705a5

Please sign in to comment.