1
Fork 0

Rollup merge of #134240 - cuviper:dist-llvm-tools, r=jieyouxu

Only dist `llvm-objcopy` if llvm tools are enabled

This uses the same condition that #132720 added in the compilation phase.

r? ``@jieyouxu``
This commit is contained in:
Matthias Krüger 2024-12-14 03:54:34 +01:00 committed by GitHub
commit a53a3ccab4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -471,7 +471,7 @@ impl Step for Rustc {
}
}
{
if builder.config.llvm_enabled(compiler.host) && builder.config.llvm_tools_enabled {
let src_dir = builder.sysroot_target_bindir(compiler, host);
let llvm_objcopy = exe("llvm-objcopy", compiler.host);
let rust_objcopy = exe("rust-objcopy", compiler.host);