[PATCH] D72583: [cmake] Add support for explicit STATIC libraries even when building mostly shared libraries.
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 00:06:36 PST 2020
stephenneuendorffer updated this revision to Diff 237581.
stephenneuendorffer added a comment.
Updating D72583 <https://reviews.llvm.org/D72583>: [cmake] Add support for explicit STATIC libraries even when building mostly shared libraries.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72583/new/
https://reviews.llvm.org/D72583
Files:
mlir/lib/Support/CMakeLists.txt
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
@@ -10,7 +10,7 @@
MLIRTransforms
MLIRSupport
)
-add_llvm_library(MLIRMlirOptLib
+add_llvm_library(MLIRMlirOptLib BUILDTREE_ONLY
mlir-opt.cpp
)
target_link_libraries(MLIRMlirOptLib ${LIB_LIBS})
@@ -65,4 +65,4 @@
)
llvm_update_compile_flags(mlir-opt)
whole_archive_link(mlir-opt ${LIBS})
-target_link_libraries(mlir-opt PRIVATE MLIRIR MLIRMlirOptLib ${LIBS} LLVMSupport)
+target_link_libraries(mlir-opt PRIVATE MLIRIR MLIROptMain MLIRMlirOptLib ${LIBS} LLVMSupport)
Index: mlir/lib/Support/CMakeLists.txt
===================================================================
--- mlir/lib/Support/CMakeLists.txt
+++ mlir/lib/Support/CMakeLists.txt
@@ -17,7 +17,7 @@
)
target_link_libraries(MLIRSupport LLVMSupport ${LLVM_PTHREAD_LIB})
-add_llvm_library(MLIROptMain
+add_llvm_library(MLIROptMain BUILDTREE_ONLY
MlirOptMain.cpp
ADDITIONAL_HEADER_DIRS
@@ -37,7 +37,7 @@
)
target_link_libraries(MLIRTranslateClParser LLVMSupport)
-add_llvm_library(MLIRJitRunner
+add_llvm_library(MLIRJitRunner BUILDTREE_ONLY
JitRunner.cpp
)
target_link_libraries(MLIRJitRunner PRIVATE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72583.237581.patch
Type: text/x-patch
Size: 1288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200113/1e97c9d0/attachment.bin>
More information about the llvm-commits
mailing list