Set RUSTC and RUSTDOC env vars to invalid values to catch forgetting to set them

This commit is contained in:
bjorn3 2023-01-14 12:41:07 +00:00
parent a09712e0d2
commit 5e452ba616

View File

@ -134,6 +134,9 @@ pub fn main() {
process::exit(0); process::exit(0);
} }
env::set_var("RUSTC", "rustc_should_be_set_explicitly");
env::set_var("RUSTDOC", "rustdoc_should_be_set_explicitly");
let cg_clif_dylib = let cg_clif_dylib =
build_backend::build_backend(&dirs, channel, &host_compiler, use_unstable_features); build_backend::build_backend(&dirs, channel, &host_compiler, use_unstable_features);
match command { match command {