Only dist llvm-objcopy if llvm tools are enabled · rust-lang/rust@4c6d793 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 4c6d793

Only dist llvm-objcopy if llvm tools are enabled

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -471,7 +471,7 @@ impl Step for Rustc {
471 471 }
472 472 }
473 473
474 -{
474 +if builder.config.llvm_enabled(compiler.host) && builder.config.llvm_tools_enabled {
475 475 let src_dir = builder.sysroot_target_bindir(compiler, host);
476 476 let llvm_objcopy = exe("llvm-objcopy", compiler.host);
477 477 let rust_objcopy = exe("rust-objcopy", compiler.host);