From ef1cc4e7aebea584c9e63837fc83f4f755cb7af3 Mon Sep 17 00:00:00 2001 From: Aart Bik Date: Thu, 27 May 2021 13:33:32 -0700 Subject: [PATCH] [mlir][capi] fix build issue with "all passes" registration Some builds exposed missing dependences on trafo/conv passes. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D103283 --- mlir/lib/CAPI/Registration/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mlir/lib/CAPI/Registration/CMakeLists.txt b/mlir/lib/CAPI/Registration/CMakeLists.txt index 417140a..b4a8650 100644 --- a/mlir/lib/CAPI/Registration/CMakeLists.txt +++ b/mlir/lib/CAPI/Registration/CMakeLists.txt @@ -1,5 +1,7 @@ # Dialect registration. get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) +get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS) +get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS) add_mlir_public_c_api_library(MLIRCAPIRegistration Registration.cpp @@ -7,4 +9,6 @@ add_mlir_public_c_api_library(MLIRCAPIRegistration MLIRCAPIIR MLIRLLVMToLLVMIRTranslation ${dialect_libs} + ${translation_libs} + ${conversion_libs} ) -- 2.7.4