Skip to content

Specify NO_LLVM_ASSERTIONS for *-nopt jobs #142516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
Contributor

Kobzol commented Jun 14, 2025

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

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