We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e471b2b commit 663c663Copy full SHA for 663c663
build.rs
@@ -68,6 +68,14 @@ fn main() {
68
}
69
70
fn compile_probe() -> Option<ExitStatus> {
71
+ if env::var_os("RUSTC_STAGE").is_some() {
72
+ // We are running inside rustc bootstrap. This is a highly non-standard environment with
73
+ // issues such as <https://github.com/rust-lang/cargo/issues/11138> and
74
+ // <https://github.com/rust-lang/rust/issues/114839>. Let's just not use nightly features
75
+ // here.
76
+ return None;
77
+ }
78
+
79
let rustc = env::var_os("RUSTC")?;
80
let out_dir = env::var_os("OUT_DIR")?;
81
let probefile = Path::new(&out_dir).join("probe.rs");
0 commit comments