Skip to content

Conversation

jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Jun 14, 2025

Without NO_LLVM_ASSERTIONS=1, the *-nopt jobs will by default receive configure arg --enable-llvm-assertions but then cmake also receives -DLLVM_ENABLE_ASSERTIONS=OFF.

Tested in #142504.
Unblocks #142447.

r? infra-ci

Without `NO_LLVM_ASSERTIONS=1`, the `*-nopt` jobs will by default
receive configure arg `--enable-llvm-assertions`.
@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Jun 14, 2025
@jieyouxu
Copy link
Member Author

cc @Kobzol: do you have any ideas why when --enable-llvm-assertions is enabled we somehow also pass -DLLVM_ENABLE_ASSERTIONS=OFF through cmake? That seems like a bootstrap bug somewhere 🤔

@Kobzol
Copy link
Member

Kobzol commented Jun 14, 2025

No idea, I'll take a look on Monday.

@jieyouxu
Copy link
Member Author

r? Kobzol

@rustbot rustbot assigned Kobzol and unassigned jdno Jun 16, 2025
@Kobzol
Copy link
Member

Kobzol commented Jun 16, 2025

I think it will be the recent-ish changes around merging configs. The empty config overrides LLVM assertions, and probably half of the rest of the CI options. We shouldn't use --config here at all. I'll send a PR.

@jieyouxu
Copy link
Member Author

Proper fix is #142566.

@jieyouxu jieyouxu closed this Jun 16, 2025
@jieyouxu jieyouxu deleted the llvm-bump branch June 16, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants