mlir: add missing dependency on TableGen targets (#1537)

lib/Dialect/Torch/Utils/Utils.cpp includes TorchOps.h, which, by way of
included header files, refers to both TorchOps.h.inc as well as
TorchTypes.h.inc.  However, the build rules do not specify the
dependency of the `TorchMLIRTorchUtils` target on the TableGen generated
header files, causing spurious build errors.

This patch fixes the problem by adding `MLIRTorchOpsIncGen` and
`MLIRTorchTypesIncGen` to the list of dependencies of
`TorchMLIRTorchUtils`.
pull/1546/head
Ashay Rane 2022-11-01 14:59:11 -05:00 committed by GitHub
parent 1a33577860
commit 0409595ccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -4,4 +4,8 @@ add_mlir_dialect_library(TorchMLIRTorchUtils
ADDITIONAL_HEADER_DIRS
${PROJECT_SOURCE_DIR}/include/torch-mlir/Dialect/Torch/Utils
DEPENDS
MLIRTorchOpsIncGen
MLIRTorchTypesIncGen
)