@@ -18,12 +18,12 @@ use crate::core::build_steps::tool::{self, SourceType};
18
18
use crate :: core:: build_steps:: { check, clean, compile, dist, doc, install, run, setup, test} ;
19
19
use crate :: core:: config:: flags:: { Color , Subcommand } ;
20
20
use crate :: core:: config:: { DryRun , SplitDebuginfo , TargetSelection } ;
21
+ use crate :: prepare_behaviour_dump_dir;
21
22
use crate :: utils:: cache:: { Cache , Interned , INTERNER } ;
22
23
use crate :: utils:: helpers:: { self , add_dylib_path, add_link_lib_path, exe, linker_args} ;
23
24
use crate :: utils:: helpers:: { libdir, linker_flags, output, t, LldThreads } ;
24
- use crate :: Crate ;
25
25
use crate :: EXTRA_CHECK_CFGS ;
26
- use crate :: { Build , CLang , DocTests , GitRepo , Mode } ;
26
+ use crate :: { Build , CLang , Crate , DocTests , GitRepo , Mode } ;
27
27
28
28
pub use crate :: Compiler ;
29
29
@@ -1788,6 +1788,16 @@ impl<'a> Builder<'a> {
1788
1788
1789
1789
// Enable usage of unstable features
1790
1790
cargo. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
1791
+
1792
+ if self . config . dump_bootstrap_shims {
1793
+ prepare_behaviour_dump_dir ( & self . build ) ;
1794
+
1795
+ cargo
1796
+ . env ( "DUMP_BOOTSTRAP_SHIMS" , self . build . out . join ( "bootstrap-shims-dump" ) )
1797
+ . env ( "BUILD_OUT" , & self . build . out )
1798
+ . env ( "CARGO_HOME" , t ! ( home:: cargo_home( ) ) ) ;
1799
+ } ;
1800
+
1791
1801
self . add_rust_test_threads ( & mut cargo) ;
1792
1802
1793
1803
// Almost all of the crates that we compile as part of the bootstrap may
0 commit comments