[clang] [clang][CIR] Fix missing dependency of MLIRCIR (PR #116221)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 05:03:20 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clangir
Author: Luohao Wang (Luohaothu)
<details>
<summary>Changes</summary>
Building `MLIRCIR` will report an error `CIROpsDialect.h.inc` not found. This is because `MLIRCIR` hasn't declared its dependence on the tablegen target `MLIRCIROpsIncGen`. This patch fixes the issue.
---
Full diff: https://github.com/llvm/llvm-project/pull/116221.diff
1 Files Affected:
- (modified) clang/lib/CIR/Dialect/IR/CMakeLists.txt (+3)
``````````diff
diff --git a/clang/lib/CIR/Dialect/IR/CMakeLists.txt b/clang/lib/CIR/Dialect/IR/CMakeLists.txt
index 1518e8c760609c..75cee3f8711307 100644
--- a/clang/lib/CIR/Dialect/IR/CMakeLists.txt
+++ b/clang/lib/CIR/Dialect/IR/CMakeLists.txt
@@ -3,6 +3,9 @@ add_clang_library(MLIRCIR
CIRDialect.cpp
CIRTypes.cpp
+ DEPENDS
+ MLIRCIROpsIncGen
+
LINK_LIBS PUBLIC
MLIRIR
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/116221
More information about the cfe-commits
mailing list