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
This commit is contained in:
Eric Schweitz 2019-11-19 19:28:12 -08:00 committed by Mehdi Amini
parent 9059854355
commit 86c66cea21

View File

@ -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)