mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add warning to the Builder::llvm_config function
(cherry picked from commit 6315b4973a)
This commit is contained in:
committed by
Josh Stone
parent
e52d88dcea
commit
fca6c02acc
@@ -1613,6 +1613,10 @@ pub fn rustdoc_cmd(&self, compiler: Compiler) -> BootstrapCommand {
|
||||
///
|
||||
/// Note that this returns `None` if LLVM is disabled, or if we're in a
|
||||
/// check build or dry-run, where there's no need to build all of LLVM.
|
||||
///
|
||||
/// FIXME(@kobzol)
|
||||
/// **WARNING**: This actually returns the **HOST** LLVM config, not LLVM config for the given
|
||||
/// *target*.
|
||||
pub fn llvm_config(&self, target: TargetSelection) -> Option<PathBuf> {
|
||||
if self.config.llvm_enabled(target) && self.kind != Kind::Check && !self.config.dry_run() {
|
||||
let llvm::LlvmResult { host_llvm_config, .. } = self.ensure(llvm::Llvm { target });
|
||||
|
||||
Reference in New Issue
Block a user