Repository navigation
ci: build clangd without ClangIR - #13
Merged
Merged
Conversation
LLVM main now builds ClangIR by default (llvm/llvm-project#221291), which adds MLIR as a dependency. The sparse checkout has no mlir directory, so the LLVM configure step failed on every platform. Clangd does not need ClangIR, so turn it off.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI has failed on every platform since about Oct 21, on
mainand on every pull request, including #11 and #12. Nothing in this repository caused it.Why
LLVM
mainnow builds ClangIR by default (llvm/llvm-project#221291, merged 2026-10-21). ClangIR depends on MLIR, so CMake addsmlirto the enabled projects. Our sparse checkout of llvm-project has nomlir/directory, so the LLVM configure step stops with:Fix
Pass
-DCLANG_ENABLE_CIR=OFFto the clangd configure step on Linux, macOS and Windows. Clangd does not use ClangIR, so this also keeps MLIR out of the build and the cache.How it was checked
Against llvm-project
mainat 84ba7b37f with the same sparse checkout: without the flag, configure fails with the error above. With the flag and the macOS CI options, configure succeeds, MLIR stays disabled, and theclangdtarget is generated. CI on this pull request runs the full build and tests.