Skip to content

Commit 91b6f76

Browse files
committed
[mlir] Fix calling the native mlir-pdll-tblgen
This sets the `MLIR_PDLL_TABLEGEN_EXE` and `MLIR_PDLL_TABLEGEN_TARGET` as cache variables which is necessary for cross-compiling projects that rely on MLIR and the mlir-pdll-tblgen tool. The patch is similar to https://reviews.llvm.org/D130350. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D131596
1 parent 603edb9 commit 91b6f76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ add_subdirectory(tools/mlir-pdll)
164164

165165
set(MLIR_TABLEGEN_EXE "${MLIR_TABLEGEN_EXE}" CACHE INTERNAL "")
166166
set(MLIR_TABLEGEN_TARGET "${MLIR_TABLEGEN_TARGET}" CACHE INTERNAL "")
167+
set(MLIR_PDLL_TABLEGEN_EXE "${MLIR_PDLL_TABLEGEN_EXE}" CACHE INTERNAL "")
168+
set(MLIR_PDLL_TABLEGEN_TARGET "${MLIR_PDLL_TABLEGEN_TARGET}" CACHE INTERNAL "")
167169

168170
add_subdirectory(include/mlir)
169171
add_subdirectory(lib)

0 commit comments

Comments
 (0)