rust/compiler/rustc_session/src
Jubilee 60e8ab6ba8
Rollup merge of #130586 - dpaoliello:fixrawdylib, r=wesleywiser
Set "symbol name" in raw-dylib import libraries to the decorated name

`windows-rs` received a bug report that mixing raw-dylib generated and the Windows SDK import libraries was causing linker failures: <https://github.com/microsoft/windows-rs/issues/3285>

The root cause turned out to be #124958, that is we are not including the decorated name in the import library and so the import name type is also not being correctly set.

This change modifies the generation of import libraries to set the "symbol name" to the fully decorated name and correctly marks the import as being data vs function.

Note that this also required some changes to how the symbol is named within Rust: for MSVC we now need to use the decorated name but for MinGW we still need to use partially decorated (or undecorated) name.

Fixes #124958

Passing i686 MSVC and MinGW build: <https://github.com/rust-lang/rust/actions/runs/11000433888?pr=130586>

r? `@ChrisDenton`
2024-11-07 18:48:20 -08:00
..
config Auto merge of #129884 - RalfJung:forbidden-target-features, r=workingjubilee 2024-11-05 16:25:45 +00:00
code_stats.rs compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
config.rs Auto merge of #132664 - matthiaskrgr:rollup-i27nr7i, r=matthiaskrgr 2024-11-06 01:21:42 +00:00
cstore.rs Rollup merge of #130586 - dpaoliello:fixrawdylib, r=wesleywiser 2024-11-07 18:48:20 -08:00
errors.rs Rename target triple to target tuple in many places in the compiler 2024-11-02 21:29:59 +01:00
filesearch.rs Rename target triple to target tuple in many places in the compiler 2024-11-02 21:29:59 +01:00
lib.rs
options.rs Rollup merge of #132259 - mrkajetanp:branch-protection-pauth-lr, r=davidtwco 2024-11-05 20:10:49 +01:00
output.rs
parse.rs fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
search_paths.rs Rename target triple to target tuple in many places in the compiler 2024-11-02 21:29:59 +01:00
session.rs Rename target triple to target tuple in many places in the compiler 2024-11-02 21:29:59 +01:00
utils.rs remove a couple of redundant String to String conversion 2024-10-12 22:07:46 +02:00
version.rs