Skip to content

Commit 5e452ba

Browse files
committed
Set RUSTC and RUSTDOC env vars to invalid values to catch forgetting to set them
1 parent a09712e commit 5e452ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build_system/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ pub fn main() {
134134
process::exit(0);
135135
}
136136

137+
env::set_var("RUSTC", "rustc_should_be_set_explicitly");
138+
env::set_var("RUSTDOC", "rustdoc_should_be_set_explicitly");
139+
137140
let cg_clif_dylib =
138141
build_backend::build_backend(&dirs, channel, &host_compiler, use_unstable_features);
139142
match command {

0 commit comments

Comments
 (0)