aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-01-22 10:01:50 +0100
committerGitHub <noreply@github.com>2025-01-22 09:01:50 +0000
commit047e8e47c1f9d872aec835b915935802e195c555 (patch)
tree4ed20000c83cb2faca5b17b9f413234fb9ce2cdc /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
parent3088c316994f078833cba11086b6c5cb29df2aae (diff)
downloadllvm-047e8e47c1f9d872aec835b915935802e195c555.zip
llvm-047e8e47c1f9d872aec835b915935802e195c555.tar.gz
llvm-047e8e47c1f9d872aec835b915935802e195c555.tar.bz2
Reapply "[mlir] Link libraries that aren't included in libMLIR to libMLIR" (#123910)
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. [v3 with more `-DBUILD_SHARED_LIBS=ON` fixes]
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
0 files changed, 0 insertions, 0 deletions