Skip to content

Commit

Permalink
Include env-dep:RUSTC_BOOTSTRAP in dep-info for sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 2, 2024
1 parent 04774c0 commit 17e252b
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 17e252b

Please sign in to comment.