[Mlir-commits] [mlir] ef1cc4e - [mlir][capi] fix build issue with "all passes" registration
Aart Bik
llvmlistbot at llvm.org
Thu May 27 14:57:29 PDT 2021
Author: Aart Bik
Date: 2021-05-27T14:57:21-07:00
New Revision: ef1cc4e7aebea584c9e63837fc83f4f755cb7af3
URL: https://github.com/llvm/llvm-project/commit/ef1cc4e7aebea584c9e63837fc83f4f755cb7af3
DIFF: https://github.com/llvm/llvm-project/commit/ef1cc4e7aebea584c9e63837fc83f4f755cb7af3.diff
LOG: [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
Added:
Modified:
mlir/lib/CAPI/Registration/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/lib/CAPI/Registration/CMakeLists.txt b/mlir/lib/CAPI/Registration/CMakeLists.txt
index 417140ac0ac6d..b4a8650b33813 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}
)
More information about the Mlir-commits
mailing list