diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-22 21:06:49 +0200 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-09-09 09:00:12 -0700 |
| commit | fca6c02accb2a6c9a2979a3a01a2728c236bf9ab (patch) | |
| tree | cd770a91502a0eeba238d8fe3e040f5ad14b9018 | |
| parent | e52d88dcea305a297136e5fd7b0bb5ee2973d0ef (diff) | |
| download | rust-fca6c02accb2a6c9a2979a3a01a2728c236bf9ab.tar.gz rust-fca6c02accb2a6c9a2979a3a01a2728c236bf9ab.zip | |
Add warning to the `Builder::llvm_config` function
(cherry picked from commit 6315b4973a8e5090ce041ca9a4eaf81ed7b70e29)
| -rw-r--r-- | src/bootstrap/src/core/builder/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs index 2e9a134c8b4..deee041490b 100644 --- a/src/bootstrap/src/core/builder/mod.rs +++ b/src/bootstrap/src/core/builder/mod.rs @@ -1613,6 +1613,10 @@ You have to build a stage1 compiler for `{}` first, and then use it to build a s /// /// 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 }); |
