From 725ed3497cc05f48ee720b20b122c6d74fc591be Mon Sep 17 00:00:00 2001 From: wannacu Date: Wed, 27 Aug 2025 08:43:31 +0800 Subject: [PATCH] Fix MLIRCIRInterfaces and clangFrontendTool build error --- clang/lib/CIR/Interfaces/CMakeLists.txt | 2 ++ clang/lib/FrontendTool/CMakeLists.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/CIR/Interfaces/CMakeLists.txt b/clang/lib/CIR/Interfaces/CMakeLists.txt index 33eb169708a4..7959e71879ef 100644 --- a/clang/lib/CIR/Interfaces/CMakeLists.txt +++ b/clang/lib/CIR/Interfaces/CMakeLists.txt @@ -13,6 +13,8 @@ add_clang_library(MLIRCIRInterfaces MLIRCIRTypeInterfacesIncGen MLIRCIRLoopOpInterfaceIncGen MLIRCIROpInterfacesIncGen + MLIRBuiltinLocationAttributesIncGen + MLIRBuiltinTypeInterfacesIncGen LINK_LIBS ${dialect_libs} diff --git a/clang/lib/FrontendTool/CMakeLists.txt b/clang/lib/FrontendTool/CMakeLists.txt index e5d980bec4bf..a3ee02d8945a 100644 --- a/clang/lib/FrontendTool/CMakeLists.txt +++ b/clang/lib/FrontendTool/CMakeLists.txt @@ -30,8 +30,6 @@ if(CLANG_ENABLE_CIR) include_directories(${CMAKE_BINARY_DIR}/tools/mlir/include) endif() -set(deps) - if(CLANG_ENABLE_STATIC_ANALYZER) list(APPEND link_libs clangStaticAnalyzerFrontend