Skip to content

Commit fca6c02

Browse files
Kobzolcuviper
authored andcommitted
Add warning to the Builder::llvm_config function
(cherry picked from commit 6315b49)
1 parent e52d88d commit fca6c02

File tree

1 file changed

+4
-0
lines changed
  • src/bootstrap/src/core/builder

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/builder/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,10 @@ You have to build a stage1 compiler for `{}` first, and then use it to build a s
16131613
///
16141614
/// Note that this returns `None` if LLVM is disabled, or if we're in a
16151615
/// check build or dry-run, where there's no need to build all of LLVM.
1616+
///
1617+
/// FIXME(@kobzol)
1618+
/// **WARNING**: This actually returns the **HOST** LLVM config, not LLVM config for the given
1619+
/// *target*.
16161620
pub fn llvm_config(&self, target: TargetSelection) -> Option<PathBuf> {
16171621
if self.config.llvm_enabled(target) && self.kind != Kind::Check && !self.config.dry_run() {
16181622
let llvm::LlvmResult { host_llvm_config, .. } = self.ensure(llvm::Llvm { target });

0 commit comments

Comments
 (0)