diff options
author | Luohao Wang <luohaothu@live.com> | 2024-11-15 14:21:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-14 22:21:07 -0800 |
commit | 56e56c9e6673cc17f4bc7cdb3a5dbffc1557b446 (patch) | |
tree | 4a0dc371f771696b99c3a543dce92beea9f4e596 | |
parent | e24457a330923dbc43a0e056deddb2d42c682e6c (diff) | |
download | llvm-56e56c9e6673cc17f4bc7cdb3a5dbffc1557b446.zip llvm-56e56c9e6673cc17f4bc7cdb3a5dbffc1557b446.tar.gz llvm-56e56c9e6673cc17f4bc7cdb3a5dbffc1557b446.tar.bz2 |
[clang][CIR] Fix missing dependency of MLIRCIR (#116221)
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.
-rw-r--r-- | clang/lib/CIR/Dialect/IR/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CIR/Dialect/IR/CMakeLists.txt b/clang/lib/CIR/Dialect/IR/CMakeLists.txt index 1518e8c..75cee3f 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 ) |