File tree 1 file changed +7
-5
lines changed
src/bootstrap/src/core/build_steps
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 {
2128
2128
// If updating this, you likely want to change
2129
2129
// src/bootstrap/download-ci-llvm-stamp as well, otherwise local users
2130
2130
// 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
+ }
2136
2138
}
2137
2139
}
2138
2140
You can’t perform that action at this time.
0 commit comments