Skip to content

Commit caf8b1f

Browse files
authored
[MLIR] Add missing MLIRDialectUtils dep to TilingInterface (#84544)
This fixes the following failure when doing a clean build (in particular no .ninja* lying around) of lib/libMLIRTilingInterface.a only: ``` In file included from mlir/include/mlir/Interfaces/TilingInterface.h:17, from mlir/lib/Interfaces/TilingInterface.cpp:13: mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h:27:10: fatal error: mlir/Dialect/Utils/DialectUtilsEnums.h.inc: No such file or directory ```
1 parent a9fe23c commit caf8b1f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

mlir/lib/Interfaces/CMakeLists.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,20 @@ add_mlir_library(MLIRSubsetOpInterface
101101
MLIRValueBoundsOpInterface
102102
)
103103

104-
add_mlir_interface_library(TilingInterface)
104+
add_mlir_library(MLIRTilingInterface
105+
TilingInterface.cpp
106+
107+
ADDITIONAL_HEADER_DIRS
108+
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
109+
110+
DEPENDS
111+
MLIRTilingInterfaceIncGen
112+
MLIRDialectUtils
113+
114+
LINK_LIBS PUBLIC
115+
MLIRIR
116+
)
117+
105118
add_mlir_interface_library(VectorInterfaces)
106119
add_mlir_interface_library(ViewLikeInterface)
107120

0 commit comments

Comments
 (0)