mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-22 15:46:49 -04:00
35c2fcfe42
Use .drectve for MSVC DLL exports This is a continuation of rust-lang/rust#142568. This fixes the i686 MSVC issue mentioned there: `.def` files accept undecorated names, but `.drectve` `/EXPORT` needs decorated symbol names. The public export name is preserved with `EXPORTAS`. It's worth noting that EII with defaults now also works on MSVC.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.