[Mlir-commits] [mlir] 91b6f76 - [mlir] Fix calling the native mlir-pdll-tblgen

Marius Brehler llvmlistbot at llvm.org
Thu Aug 11 02:34:45 PDT 2022


Author: Marius Brehler
Date: 2022-08-11T09:34:13Z
New Revision: 91b6f76a582a540a188b3501ea19fe2eee9daa3f

URL: https://github.com/llvm/llvm-project/commit/91b6f76a582a540a188b3501ea19fe2eee9daa3f
DIFF: https://github.com/llvm/llvm-project/commit/91b6f76a582a540a188b3501ea19fe2eee9daa3f.diff

LOG: [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

Added: 
    

Modified: 
    mlir/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index 22198714ace4..ac98cc290a0b 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -164,6 +164,8 @@ add_subdirectory(tools/mlir-pdll)
 
 set(MLIR_TABLEGEN_EXE "${MLIR_TABLEGEN_EXE}" CACHE INTERNAL "")
 set(MLIR_TABLEGEN_TARGET "${MLIR_TABLEGEN_TARGET}" CACHE INTERNAL "")
+set(MLIR_PDLL_TABLEGEN_EXE "${MLIR_PDLL_TABLEGEN_EXE}" CACHE INTERNAL "")
+set(MLIR_PDLL_TABLEGEN_TARGET "${MLIR_PDLL_TABLEGEN_TARGET}" CACHE INTERNAL "")
 
 add_subdirectory(include/mlir)
 add_subdirectory(lib)


        


More information about the Mlir-commits mailing list