[PATCH] D75228: [MLIR] Make MLIR_TABLEGEN_EXE a CMake CACHE variable

Vladislav Vinogradov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 22:53:59 PST 2020


vinograd47 created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a project: LLVM.

This allows to explicitly override this variable during cross-compilation to use native `mlir-tblgen` tool.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75228

Files:
  mlir/CMakeLists.txt


Index: mlir/CMakeLists.txt
===================================================================
--- mlir/CMakeLists.txt
+++ mlir/CMakeLists.txt
@@ -1,7 +1,7 @@
 # MLIR project.
 set(MLIR_MAIN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ) # --src-root
 set(MLIR_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/include ) # --includedir
-set(MLIR_TABLEGEN_EXE mlir-tblgen)
+set(MLIR_TABLEGEN_EXE mlir-tblgen CACHE STRING "")
 
 set(MLIR_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
 set(MLIR_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75228.246882.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200227/8e417c93/attachment.bin>


More information about the llvm-commits mailing list