We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fd79cd commit fa63782Copy full SHA for fa63782
build.rs
@@ -43,6 +43,14 @@ fn main() {
43
}
44
45
fn compile_probe() -> Option<ExitStatus> {
46
+ if env::var_os("RUSTC_STAGE").is_some() {
47
+ // We are running inside rustc bootstrap. This is a highly non-standard environment with
48
+ // issues such as <https://github.com/rust-lang/cargo/issues/11138> and
49
+ // <https://github.com/rust-lang/rust/issues/114839>. Let's just not use nightly features
50
+ // here.
51
+ return None;
52
+ }
53
+
54
let rustc = env::var_os("RUSTC")?;
55
let out_dir = env::var_os("OUT_DIR")?;
56
let probefile = Path::new(&out_dir).join("probe.rs");
0 commit comments