aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-01-20 18:25:20 +0100
committerGitHub <noreply@github.com>2025-01-20 17:25:20 +0000
commitaf6616676fb7f9dd4898290ea684ee0c90f1701d (patch)
treed7e45093e7dfade59e2961b7343e8d7b5efd5220 /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parent5810f157cd048fd7e2fc20f4f782462164279eba (diff)
downloadllvm-af6616676fb7f9dd4898290ea684ee0c90f1701d.zip
llvm-af6616676fb7f9dd4898290ea684ee0c90f1701d.tar.gz
llvm-af6616676fb7f9dd4898290ea684ee0c90f1701d.tar.bz2
[mlir] Link libraries that aren't included in libMLIR to libMLIR (#123477)
Use `mlir_target_link_libraries()` to link dependencies of libraries that are not included in libMLIR, to ensure that they link to the dylib when they are used in Flang. Otherwise, they implicitly pull in all their static dependencies, effectively causing Flang binaries to simultaneously link to the dylib and to static libraries, which is never a good idea. I have only covered the libraries that are used by Flang. If you wish, I can extend this approach to all non-libMLIR libraries in MLIR, making MLIR itself also link to the dylib consistently.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions