Author: Luohao Wang Date: 2024-11-14T22:21:07-08:00 New Revision: 56e56c9e6673cc17f4bc7cdb3a5dbffc1557b446
URL: https://github.com/llvm/llvm-project/commit/56e56c9e6673cc17f4bc7cdb3a5dbffc1557b446 DIFF: https://github.com/llvm/llvm-project/commit/56e56c9e6673cc17f4bc7cdb3a5dbffc1557b446.diff LOG: [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. Added: Modified: clang/lib/CIR/Dialect/IR/CMakeLists.txt Removed: ################################################################################ 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 ) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits