You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.rs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,14 @@ fn main() {
68
68
}
69
69
70
70
fncompile_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
+
returnNone;
77
+
}
78
+
71
79
let rustc = env::var_os("RUSTC")?;
72
80
let out_dir = env::var_os("OUT_DIR")?;
73
81
let probefile = Path::new(&out_dir).join("probe.rs");
0 commit comments