@@ -18,12 +18,12 @@ use crate::core::build_steps::tool::{self, SourceType};
1818use crate :: core:: build_steps:: { check, clean, compile, dist, doc, install, run, setup, test} ;
1919use crate :: core:: config:: flags:: { Color , Subcommand } ;
2020use crate :: core:: config:: { DryRun , SplitDebuginfo , TargetSelection } ;
21+ use crate :: prepare_behaviour_dump_dir;
2122use crate :: utils:: cache:: { Cache , Interned , INTERNER } ;
2223use crate :: utils:: helpers:: { self , add_dylib_path, add_link_lib_path, exe, linker_args} ;
2324use crate :: utils:: helpers:: { libdir, linker_flags, output, t, LldThreads } ;
24- use crate :: Crate ;
2525use crate :: EXTRA_CHECK_CFGS ;
26- use crate :: { Build , CLang , DocTests , GitRepo , Mode } ;
26+ use crate :: { Build , CLang , Crate , DocTests , GitRepo , Mode } ;
2727
2828pub use crate :: Compiler ;
2929
@@ -1788,6 +1788,16 @@ impl<'a> Builder<'a> {
17881788
17891789 // Enable usage of unstable features
17901790 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+
17911801 self . add_rust_test_threads ( & mut cargo) ;
17921802
17931803 // Almost all of the crates that we compile as part of the bootstrap may
0 commit comments