Skip to content
Myr

don't run build probes in rustc bootstrap

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ralf Jung · committed by Ralf Jung · parent e471b2b · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:build.rs+8 added
66 unmodified lines
67 }68}6970fn 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 with73 // issues such as <https://github.com/rust-lang/cargo/issues/11138> and74 // <https://github.com/rust-lang/rust/issues/114839>. Let's just not use nightly features75 // here.76 return None;77 }7879 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");82 fs::write(&probefile, PROBE).ok()?;
46 unmodified lines