diff options
author | Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> | 2020-03-06 15:46:51 -0800 |
---|---|---|
committer | Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> | 2020-03-11 12:02:10 -0700 |
commit | accede537e663322c50e9858df761412551036c5 (patch) | |
tree | 5e9bde935cf1de4fc3c51bee155f0177686228c9 | |
parent | d8f9416fdc83dd85062dc8cffdf982d2a953193f (diff) | |
download | llvm-accede537e663322c50e9858df761412551036c5.zip llvm-accede537e663322c50e9858df761412551036c5.tar.gz llvm-accede537e663322c50e9858df761412551036c5.tar.bz2 |
[MLIR] Link MLIRMlirOptMain with the same libraries as mlir-opt
MLIRMlirOptMain seems to need the same libraries as mlir-opt.
Differential Revision: https://reviews.llvm.org/D75783
-rw-r--r-- | mlir/tools/mlir-opt/CMakeLists.txt | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/mlir/tools/mlir-opt/CMakeLists.txt b/mlir/tools/mlir-opt/CMakeLists.txt index c6543b1..9ade33a 100644 --- a/mlir/tools/mlir-opt/CMakeLists.txt +++ b/mlir/tools/mlir-opt/CMakeLists.txt @@ -2,24 +2,6 @@ set(LLVM_OPTIONAL_SOURCES null.cpp ) -set(LIB_LIBS - MLIRAnalysis - MLIRIR - MLIRLLVMIR - MLIROptLib - MLIRParser - MLIRPass - MLIRTransforms - MLIRSupport -) -add_llvm_library(MLIRMlirOptMain - mlir-opt.cpp -) -target_link_libraries(MLIRMlirOptMain - PUBLIC - ${LIB_LIBS} -) - get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS) set(LIBS @@ -51,6 +33,14 @@ set(LIBS LLVMSupport LLVMCore LLVMAsmParser + ) + +add_llvm_library(MLIRMlirOptMain + mlir-opt.cpp +) +target_link_libraries(MLIRMlirOptMain + PUBLIC + ${LIBS} ) add_llvm_tool(mlir-opt |