File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2128,11 +2128,13 @@ impl Step for RustDev {
21282128 // If updating this, you likely want to change
21292129 // src/bootstrap/download-ci-llvm-stamp as well, otherwise local users
21302130 // will not pick up the extra file until LLVM gets bumped.
2131- for entry in walkdir:: WalkDir :: new ( & src_bindir) {
2132- let entry = t ! ( entry) ;
2133- if entry. file_type ( ) . is_file ( ) && !entry. path_is_symlink ( ) {
2134- let name = entry. file_name ( ) . to_str ( ) . unwrap ( ) ;
2135- tarball. add_file ( src_bindir. join ( name) , "bin" , 0o755 ) ;
2131+ if src_bindir. exists ( ) {
2132+ for entry in walkdir:: WalkDir :: new ( & src_bindir) {
2133+ let entry = t ! ( entry) ;
2134+ if entry. file_type ( ) . is_file ( ) && !entry. path_is_symlink ( ) {
2135+ let name = entry. file_name ( ) . to_str ( ) . unwrap ( ) ;
2136+ tarball. add_file ( src_bindir. join ( name) , "bin" , 0o755 ) ;
2137+ }
21362138 }
21372139 }
21382140
You can’t perform that action at this time.
0 commit comments