[PATCH] D78773: Adjust libMLIR building to more closely follow libClang
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 23:20:02 PDT 2020
stephenneuendorffer added inline comments.
================
Comment at: mlir/tools/mlir-shlib/CMakeLists.txt:43
+ )
target_link_libraries(MLIR PRIVATE LLVM ${LLVM_PTHREAD_LIB})
endif()
----------------
stephenneuendorffer wrote:
> Insert here:
> + foreach (lib ${mlir_libs})
> + add_dependencies(MLIR ${lib})
> + endforeach ()
> seems to solve the dependency problem. (Not fully tested) I suspect the problem is that deep in the bowels of cmake it handles the dependencies different for object libraries. These seem to not quite get the same dependency handling as target_link_libraries.
I see however, that this doesn't seem to work with makefiles. (it seems that flang also suffers from this makefile problem)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78773/new/
https://reviews.llvm.org/D78773
More information about the llvm-commits
mailing list