]> git.lizzy.rs Git - rust.git/commitdiff
Set RUSTC and RUSTDOC env vars to invalid values to catch forgetting to set them
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sat, 14 Jan 2023 12:41:07 +0000 (12:41 +0000)
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sat, 14 Jan 2023 14:18:11 +0000 (14:18 +0000)
build_system/mod.rs

index f0cde968ae7b871efaf2510ccd6310c289389398..265416c48fcca2b47086c19597b3e579fd56ef3a 100644 (file)
@@ -134,6 +134,9 @@ pub fn main() {
         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 =
         build_backend::build_backend(&dirs, channel, &host_compiler, use_unstable_features);
     match command {