[PATCH] D75783: [MLIR] Link MLIRMlirOptMain with the same libraries as mlir-opt
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 11 12:30:11 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaccede537e66: [MLIR] Link MLIRMlirOptMain with the same libraries as mlir-opt (authored by stephenneuendorffer).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75783/new/
https://reviews.llvm.org/D75783
Files:
mlir/tools/mlir-opt/CMakeLists.txt
Index: mlir/tools/mlir-opt/CMakeLists.txt
===================================================================
--- mlir/tools/mlir-opt/CMakeLists.txt
+++ mlir/tools/mlir-opt/CMakeLists.txt
@@ -2,24 +2,6 @@
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 @@
LLVMSupport
LLVMCore
LLVMAsmParser
+ )
+
+add_llvm_library(MLIRMlirOptMain
+ mlir-opt.cpp
+)
+target_link_libraries(MLIRMlirOptMain
+ PUBLIC
+ ${LIBS}
)
add_llvm_tool(mlir-opt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75783.249726.patch
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200311/41b9a5e8/attachment.bin>
More information about the llvm-commits
mailing list