Skip to content

Commit 4c6d793

Browse files
committed
Only dist llvm-objcopy if llvm tools are enabled
1 parent 915e7eb commit 4c6d793

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/src/core/build_steps/dist.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ impl Step for Rustc {
471471
}
472472
}
473473

474-
{
474+
if builder.config.llvm_enabled(compiler.host) && builder.config.llvm_tools_enabled {
475475
let src_dir = builder.sysroot_target_bindir(compiler, host);
476476
let llvm_objcopy = exe("llvm-objcopy", compiler.host);
477477
let rust_objcopy = exe("rust-objcopy", compiler.host);

0 commit comments

Comments
 (0)