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 4dce5d7 commit 68846e3
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 @@ -156,7 +156,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
.arg("--edition=2021")
.arg("--crate-name=proc_macro2")
.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 @@ -16,3 +16,6 @@ pub fn join(this: &Span, other: Span) -> Option<Span> {
pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> {
this.subspan(range)
}

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

0 comments on commit 68846e3

Please sign in to comment.