[all-commits] [llvm/llvm-project] a41a08: [CIR][CMake] Configure MLIR as a dependency-only p...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Wed Sep 9 10:44:12 PDT 2026
Branch: refs/heads/users/mamini/clang-cir-dependent-mlir
Home: https://github.com/llvm/llvm-project
Commit: a41a088c762cc72d30b1f0626eb8b786f5ccae98
https://github.com/llvm/llvm-project/commit/a41a088c762cc72d30b1f0626eb8b786f5ccae98
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-09-09 (Wed, 09 Sep 2026)
Changed paths:
M clang/CMakeLists.txt
M llvm/CMakeLists.txt
Log Message:
-----------
[CIR][CMake] Configure MLIR as a dependency-only project
Enable MLIR implicitly for ClangIR without attaching its unrelated tools
and test suite to the aggregate build. An explicit MLIR selection retains
its normal behavior. Add MLIR after all Clang consumers enable Clang, so
CIR also works when Clang is enabled for LLDB.
Package the required MLIR libraries through Clang's existing exports and
LLVM's distribution policy. Register dependency library and header install
components and honor toolchain-only installations. When Clang is itself
an implicit Flang dependency, let Flang package the required targets.
Keep MLIR test support available for CIR and retain the standalone ClangIR
restriction. Leave MLIR disabled when CIR is disabled.
Validated implicit and explicit MLIR, CIR disabled, toolchain-only, binary
distribution, and combined Flang/CIR configurations. Combined SDK and named
distributions configure successfully, as does an external CMake consumer
loading the Clang and Flang build-tree packages.
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