diff options
| author | bors <bors@rust-lang.org> | 2021-12-11 06:58:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-11 06:58:24 +0000 |
| commit | 4a66a704b2c3d30ff07d89380ebb9ba3de3b3182 (patch) | |
| tree | dbc16982ac5e1b8df8da7a4191c388de1f80abd1 | |
| parent | c185610ebc19a0fc22e68472483dc69ea10b92fd (diff) | |
| parent | faf407d5dccacdcaa0ee40bfee18847226c570f7 (diff) | |
| download | rust-4a66a704b2c3d30ff07d89380ebb9ba3de3b3182.tar.gz rust-4a66a704b2c3d30ff07d89380ebb9ba3de3b3182.zip | |
Auto merge of #91720 - Aaron1011:skip-llvm-ci-tools, r=Mark-Simulacrum
Don't copy llvm tools to sysroot when using download-ci-llvm Fixes #91710
| -rw-r--r-- | src/bootstrap/compile.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index 186b5e92d33..6a734ab5177 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -1173,7 +1173,12 @@ impl Step for Assemble { // (e.g. the `bootimage` crate). for tool in LLVM_TOOLS { let tool_exe = exe(tool, target_compiler.host); - builder.copy(&llvm_bin_dir.join(&tool_exe), &libdir_bin.join(&tool_exe)); + let src_path = llvm_bin_dir.join(&tool_exe); + // When using `donwload-ci-llvm`, some of the tools + // may not exist, so skip trying to copy them. + if src_path.exists() { + builder.copy(&src_path, &libdir_bin.join(&tool_exe)); + } } } } |
