Skip to content

Commit 1071e26

Browse files
committed
Make sure the llvm binary path exists.
1 parent 0aaec42 commit 1071e26

File tree

1 file changed

+7
-5
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+7
-5
lines changed

src/bootstrap/src/core/build_steps/dist.rs

+7-5
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)