mirror of https://github.com/llvm/torch-mlir
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
parent
1a33577860
commit
0409595ccc
|
@ -4,4 +4,8 @@ add_mlir_dialect_library(TorchMLIRTorchUtils
|
|||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${PROJECT_SOURCE_DIR}/include/torch-mlir/Dialect/Torch/Utils
|
||||
|
||||
DEPENDS
|
||||
MLIRTorchOpsIncGen
|
||||
MLIRTorchTypesIncGen
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue