We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ee24f6 + 6ae36a3 commit 8c7b921Copy full SHA for 8c7b921
src/bootstrap/builder.rs
@@ -817,12 +817,22 @@ impl<'a> Builder<'a> {
817
818
let mut rustflags = Rustflags::new(&target);
819
if stage != 0 {
820
+ if let Ok(s) = env::var("CARGOFLAGS_NOT_BOOTSTRAP") {
821
+ cargo.args(s.split_whitespace());
822
+ }
823
rustflags.env("RUSTFLAGS_NOT_BOOTSTRAP");
824
} else {
825
+ if let Ok(s) = env::var("CARGOFLAGS_BOOTSTRAP") {
826
827
828
rustflags.env("RUSTFLAGS_BOOTSTRAP");
829
rustflags.arg("--cfg=bootstrap");
830
}
831
832
+ if let Ok(s) = env::var("CARGOFLAGS") {
833
834
835
+
836
match mode {
837
Mode::Std | Mode::ToolBootstrap | Mode::ToolStd => {},
838
Mode::Rustc | Mode::Codegen | Mode::ToolRustc => {
0 commit comments