Skip to content

Commit 60705a5

Browse files
authored
Merge pull request #340 from dtolnay/depinfo
Include env-dep:RUSTC_BOOTSTRAP in dep-info for sccache
2 parents 04774c0 + 17e252b commit 60705a5

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
@@ -121,7 +121,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
121121
.arg("--edition=2018")
122122
.arg("--crate-name=anyhow")
123123
.arg("--crate-type=lib")
124-
.arg("--emit=metadata")
124+
.arg("--emit=dep-info,metadata")
125125
.arg("--out-dir")
126126
.arg(out_dir)
127127
.arg(probefile);

build/probe.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ impl Error for MyError {
3030
}
3131

3232
const _: fn(&dyn Error) -> Option<&Backtrace> = |err| error::request_ref::<Backtrace>(err);
33+
34+
// Include in sccache cache key.
35+
const _: Option<&str> = option_env!("RUSTC_BOOTSTRAP");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy