Skip to content

Commit 68846e3

Browse files
committed
Include env-dep:RUSTC_BOOTSTRAP in dep-info for sccache
1 parent 4dce5d7 commit 68846e3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
156156
.arg("--edition=2021")
157157
.arg("--crate-name=proc_macro2")
158158
.arg("--crate-type=lib")
159-
.arg("--emit=metadata")
159+
.arg("--emit=dep-info,metadata")
160160
.arg("--out-dir")
161161
.arg(out_dir)
162162
.arg(probefile);

build/probe.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ pub fn join(this: &Span, other: Span) -> Option<Span> {
1616
pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> {
1717
this.subspan(range)
1818
}
19+
20+
// Include in sccache cache key.
21+
const _: Option<&str> = option_env!("RUSTC_BOOTSTRAP");

0 commit comments

Comments
 (0)