[all-commits] [llvm/llvm-project] 538aca: [CIR][CMake] Configure MLIR as a dependency-only p...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Mon Sep 7 06:39:31 PDT 2026
Branch: refs/heads/users/mamini/clang-cir-dependent-mlir
Home: https://github.com/llvm/llvm-project
Commit: 538acace3b8e25b25855ac64ae76c176bcd95fae
https://github.com/llvm/llvm-project/commit/538acace3b8e25b25855ac64ae76c176bcd95fae
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-09-07 (Mon, 07 Sep 2026)
Changed paths:
M clang/CMakeLists.txt
M llvm/CMakeLists.txt
Log Message:
-----------
[CIR][CMake] Configure MLIR as a dependency-only project
ClangIR requires MLIR, but enabling CIR currently requires users to list MLIR
explicitly in LLVM_ENABLE_PROJECTS. That also attaches all MLIR build, install,
unit-test, and lit targets to the corresponding LLVM aggregates.
When Clang is selected and CLANG_ENABLE_CIR is enabled, record MLIR in
LLVM_DEPENDENCY_ONLY_PROJECTS unless it is already available. This configures
the MLIR targets used by CIR without changing LLVM_ENABLE_PROJECTS or enabling
MLIR's aggregate targets.
Keep explicit MLIR selections unchanged and retain the existing standalone
ClangIR restriction. Clang builds with CIR disabled continue to omit MLIR.
Assisted-by: Codex
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list