We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cargo build
1 parent 88189a7 commit 6468d44Copy full SHA for 6468d44
compiler/rustc_macros/build.rs
@@ -0,0 +1,16 @@
1
+fn main() {
2
+ println!("cargo:rerun-if-changed=build.rs");
3
+ println!("cargo:rerun-if-env-changed=RUSTC_BOOTSTRAP");
4
+ if !std::env::var("RUSTC_BOOTSTRAP").is_ok() {
5
+ eprintln!(
6
+ "error: you are attempting to build the compiler without going through bootstrap"
7
+ );
8
9
+ "help: see https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html for how to build the compiler"
10
11
12
+ "help: if you know what you're doing, set the RUSTC_BOOTSTRAP environment variable to any value"
13
14
+ panic!("wrong command used for building");
15
+ }
16
+}
0 commit comments