about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-16 18:34:00 +0200
committerGitHub <noreply@github.com>2024-09-16 18:34:00 +0200
commiteac6f07380350b2b369e2942e8511f4178c642c2 (patch)
treea5a804973dbffad3733fc27f3fbc6f0abff7d7d0 /compiler/rustc_codegen_llvm/src/builder.rs
parent13b5a4e43b92cf738acad403ea56900947f9d37b (diff)
parent98481be353b3be34be684a11c467b72992561fde (diff)
downloadrust-eac6f07380350b2b369e2942e8511f4178c642c2.tar.gz
rust-eac6f07380350b2b369e2942e8511f4178c642c2.zip
Rollup merge of #123436 - amyspark:allow-msvc-to-use-meson-and-mingw-import-libraries, r=petrochenkov
linker: Allow MSVC to use import libraries following the Meson/MinGW convention

Hi all,

This PR implements support for `MsvcLinker` to use import libraries following Meson and the MinGW toolchain's naming convention. Meson [follows the `libfoo.dll.a` naming convention](https://mesonbuild.com/FAQ.html#why-does-building-my-project-with-msvc-output-static-libraries-called-libfooa) to disambiguate between static and import libraries.

This support already existed for static libraries (see #100101), but not for dynamic libraries. The latter case was added by duplicating the logic in `native_libs::find_native_static_library`, but a separate case was added in `link_dylib_by_name` for the Windows CRT libraries which must be handled by the linker itself.

See for prerequisites #129366, #126094, and #128370.

All feedback is appreciated!

Fixes #122455

cc `@sdroege` `@nirbheek`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions