We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccec065 + faf407d commit aaa0b7fCopy full SHA for aaa0b7f
src/bootstrap/compile.rs
@@ -1173,7 +1173,12 @@ impl Step for Assemble {
1173
// (e.g. the `bootimage` crate).
1174
for tool in LLVM_TOOLS {
1175
let tool_exe = exe(tool, target_compiler.host);
1176
- builder.copy(&llvm_bin_dir.join(&tool_exe), &libdir_bin.join(&tool_exe));
+ let src_path = llvm_bin_dir.join(&tool_exe);
1177
+ // When using `donwload-ci-llvm`, some of the tools
1178
+ // may not exist, so skip trying to copy them.
1179
+ if src_path.exists() {
1180
+ builder.copy(&src_path, &libdir_bin.join(&tool_exe));
1181
+ }
1182
}
1183
1184
0 commit comments