Skip to content

[Bootstrap] Pass exact CI llvm-config executable path - #161598

Open
jieyouxu wants to merge 1 commit into
rust-lang:mainfrom
jieyouxu:jieyouxu/fix/bootstrap-ci-llvm-config
Open

[Bootstrap] Pass exact CI llvm-config executable path#161598
jieyouxu wants to merge 1 commit into
rust-lang:mainfrom
jieyouxu:jieyouxu/fix/bootstrap-ci-llvm-config

Conversation

@jieyouxu

@jieyouxu jieyouxu commented Aug 23, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up fix for #160916.

I noticed that against latest main we are repeatedly invalidating rustc_llvm's build script after

       Fresh ar_archive_writer v0.5.3
       Dirty rustc_llvm v0.0.0 (X:\repos\rust\compiler\rustc_llvm): the file `build\x86_64-pc-windows-msvc\ci-llvm\bin\llvm-config` is missing
   Compiling rustc_llvm v0.0.0 (X:\repos\rust\compiler\rustc_llvm)
       Fresh unicode-security **v0.1.2**

This PR passes the exact CI LLVM llvm-config executable path (including the .exe extension on Windows). Otherwise, this will cause rustc_llvm build script to consider the llvm-config executable missing, causing cargo build cache invalidation.

I tested this locally and this seems to fix the invalidation w/ CI LLVM.

r? Kobzol

Otherwise, this will cause `rustc_llvm` build script to consider the
`llvm-config` executable missing, causing cargo build cache
invalidation.
@rustbot

rustbot commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Aug 23, 2026
@rustbot

rustbot commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Kobzol is not on the review rotation at the moment.
They may take a while to respond.

@jieyouxu jieyouxu changed the title [Bootstrap] Use full exact CI llvm-config executable path [Bootstrap] Pass exact CI llvm-config executable path Aug 23, 2026

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bors r+ rollup

View changes since this review

@rust-bors

rust-bors Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1bb1610 has been approved by Kobzol

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 23, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 23, 2026
…-llvm-config, r=Kobzol

[Bootstrap] Pass exact CI `llvm-config` executable path

## Summary

Follow-up fix for rust-lang#160916.

I noticed that against latest `main` we are repeatedly invalidating `rustc_llvm`'s build script after

```
       Fresh ar_archive_writer v0.5.3
       Dirty rustc_llvm v0.0.0 (X:\repos\rust\compiler\rustc_llvm): the file `build\x86_64-pc-windows-msvc\ci-llvm\bin\llvm-config` is missing
   Compiling rustc_llvm v0.0.0 (X:\repos\rust\compiler\rustc_llvm)
       Fresh unicode-security **v0.1.2**
```

This PR passes the *exact* CI LLVM `llvm-config` executable path (including the `.exe` extension on Windows). Otherwise, this will cause `rustc_llvm` build script to consider the `llvm-config` executable missing, causing cargo build cache invalidation.

I tested this locally and this seems to fix the invalidation w/ CI LLVM.

r? Kobzol
rust-bors Bot pushed a commit that referenced this pull request Aug 23, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #160302 (target_features: sse (or at least avx2) is incompatible with soft-float ABI)
 - #161586 (miri subtree update)
 - #155254 (Recover on attribute in use tree)
 - #161166 (add crashtests [5/N], remove unused aux files )
 - #161294 (add crashtests [6/N])
 - #161569 (Bump cfg_aliases to 0.2.2)
 - #161573 (re-bless `pretty-std` on windows)
 - #161588 (update eyre)
 - #161598 ([Bootstrap] Pass exact CI `llvm-config` executable path)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 23, 2026
…-llvm-config, r=Kobzol

[Bootstrap] Pass exact CI `llvm-config` executable path

## Summary

Follow-up fix for rust-lang#160916.

I noticed that against latest `main` we are repeatedly invalidating `rustc_llvm`'s build script after

```
       Fresh ar_archive_writer v0.5.3
       Dirty rustc_llvm v0.0.0 (X:\repos\rust\compiler\rustc_llvm): the file `build\x86_64-pc-windows-msvc\ci-llvm\bin\llvm-config` is missing
   Compiling rustc_llvm v0.0.0 (X:\repos\rust\compiler\rustc_llvm)
       Fresh unicode-security **v0.1.2**
```

This PR passes the *exact* CI LLVM `llvm-config` executable path (including the `.exe` extension on Windows). Otherwise, this will cause `rustc_llvm` build script to consider the `llvm-config` executable missing, causing cargo build cache invalidation.

I tested this locally and this seems to fix the invalidation w/ CI LLVM.

r? Kobzol
rust-bors Bot pushed a commit that referenced this pull request Aug 23, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #160302 (target_features: sse (or at least avx2) is incompatible with soft-float ABI)
 - #161187 (add `Complex<T>` layout tests for straightforward targets)
 - #161524 (Put back `tests/rustdoc-gui/search-result-display.goml`)
 - #161586 (miri subtree update)
 - #155254 (Recover on attribute in use tree)
 - #158695 (Replace `CrateDump` with the Debug impl from `CStore`)
 - #160452 (-Ctarget-feature is not unsafe (any more))
 - #161007 (tests/ui/union/union-nodrop.rs: fix typo "expressios")
 - #161166 (add crashtests [5/N], remove unused aux files )
 - #161569 (Bump cfg_aliases to 0.2.2)
 - #161573 (re-bless `pretty-std` on windows)
 - #161588 (update eyre)
 - #161589 (std: reduce visibility of some internal OsStr related types)
 - #161598 ([Bootstrap] Pass exact CI `llvm-config` executable path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants