File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -817,12 +817,22 @@ impl<'a> Builder<'a> {
817
817
818
818
let mut rustflags = Rustflags :: new ( & target) ;
819
819
if stage != 0 {
820
+ if let Ok ( s) = env:: var ( "CARGOFLAGS_NOT_BOOTSTRAP" ) {
821
+ cargo. args ( s. split_whitespace ( ) ) ;
822
+ }
820
823
rustflags. env ( "RUSTFLAGS_NOT_BOOTSTRAP" ) ;
821
824
} else {
825
+ if let Ok ( s) = env:: var ( "CARGOFLAGS_BOOTSTRAP" ) {
826
+ cargo. args ( s. split_whitespace ( ) ) ;
827
+ }
822
828
rustflags. env ( "RUSTFLAGS_BOOTSTRAP" ) ;
823
829
rustflags. arg ( "--cfg=bootstrap" ) ;
824
830
}
825
831
832
+ if let Ok ( s) = env:: var ( "CARGOFLAGS" ) {
833
+ cargo. args ( s. split_whitespace ( ) ) ;
834
+ }
835
+
826
836
match mode {
827
837
Mode :: Std | Mode :: ToolBootstrap | Mode :: ToolStd => { } ,
828
838
Mode :: Rustc | Mode :: Codegen | Mode :: ToolRustc => {
You can’t perform that action at this time.
0 commit comments