File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -829,13 +829,16 @@ macro_rules! tool_doc {
829
829
builder. stage_out( compiler, Mode :: ToolRustc ) . join( "doc" ) ,
830
830
] ;
831
831
832
- $( for krate in $crates {
833
- let dir_name = krate. replace( "-" , "_" ) ;
834
- t!( fs:: create_dir_all( & out. join( dir_name) ) ) ;
835
- } ) ?
832
+ if !builder. config. dry_run( ) {
833
+ for out_dir in & out_dirs {
834
+ t!( fs:: create_dir_all( & out_dir) ) ;
835
+ symlink_dir_force( & builder. config, & out, & out_dir) ;
836
+ }
836
837
837
- for out_dir in out_dirs {
838
- symlink_dir_force( & builder. config, & out, & out_dir) ;
838
+ $( for krate in $crates {
839
+ let dir_name = krate. replace( "-" , "_" ) ;
840
+ t!( fs:: create_dir_all( out_dirs[ 0 ] . join( & * dir_name) ) ) ;
841
+ } ) ?
839
842
}
840
843
841
844
// Build cargo command.
You can’t perform that action at this time.
0 commit comments