[llvm] 86c66ce - Extends the tblgen macro to allow mlir-tblgen to be installed
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 19:30:41 PST 2019
Author: Eric Schweitz
Date: 2019-11-19T19:28:58-08:00
New Revision: 86c66cea21f065a1f757cb072c544f89ce227284
URL: https://github.com/llvm/llvm-project/commit/86c66cea21f065a1f757cb072c544f89ce227284
DIFF: https://github.com/llvm/llvm-project/commit/86c66cea21f065a1f757cb072c544f89ce227284.diff
LOG: Extends the tblgen macro to allow mlir-tblgen to be installed
The mlir-tblgen tool was not getting installed. This change allows
the MLIR project to be installed along with llvm-tblgen.
Differential Revision: https://reviews.llvm.org/D69824
Added:
Modified:
llvm/cmake/modules/TableGen.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index a1c28870c144..9d2fcd9a793c 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -160,7 +160,7 @@ macro(add_tablegen target project)
endif()
endif()
- if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND LLVM_BUILD_UTILS)
+ if ((${project} STREQUAL LLVM OR ${project} STREQUAL MLIR) AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND LLVM_BUILD_UTILS)
set(export_to_llvmexports)
if(${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
NOT LLVM_DISTRIBUTION_COMPONENTS)
More information about the llvm-commits
mailing list