llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: None (darkbuck) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/131057.diff 2 Files Affected: - (modified) clang/lib/CIR/FrontendAction/CMakeLists.txt (+3) - (modified) clang/lib/FrontendTool/CMakeLists.txt (+5) ``````````diff diff --git a/clang/lib/CIR/FrontendAction/CMakeLists.txt b/clang/lib/CIR/FrontendAction/CMakeLists.txt index 6d5a8758468f6..df0e075fb7532 100644 --- a/clang/lib/CIR/FrontendAction/CMakeLists.txt +++ b/clang/lib/CIR/FrontendAction/CMakeLists.txt @@ -11,6 +11,9 @@ add_clang_library(clangCIRFrontendAction DEPENDS MLIRCIROpsIncGen MLIRCIROpInterfacesIncGen + # Add mlir-generic-headers dependency as the header CIRGenAction.h needs to + # include BuiltinOps.h + mlir-generic-headers LINK_LIBS clangAST diff --git a/clang/lib/FrontendTool/CMakeLists.txt b/clang/lib/FrontendTool/CMakeLists.txt index d7a3699361f0a..5a828ce239c64 100644 --- a/clang/lib/FrontendTool/CMakeLists.txt +++ b/clang/lib/FrontendTool/CMakeLists.txt @@ -15,6 +15,11 @@ set(link_libs set(deps) if(CLANG_ENABLE_CIR) + # Add mlir-generic-headers dependency as the header CIRGenAction.h needs to + # include BuiltinOps.h + list(APPEND deps + mlir-generic-headers + ) list(APPEND link_libs clangCIRFrontendAction MLIRIR `````````` </details> https://github.com/llvm/llvm-project/pull/131057 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits