]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #72049 - mati865:mingw-lld, r=petrochenkov
authorbors <bors@rust-lang.org>
Wed, 29 Jul 2020 13:58:19 +0000 (13:58 +0000)
committerbors <bors@rust-lang.org>
Wed, 29 Jul 2020 13:58:19 +0000 (13:58 +0000)
MinGW: enable dllexport/dllimport

Fixes (only when using LLD) https://github.com/rust-lang/rust/issues/50176
Fixes https://github.com/rust-lang/rust/issues/72319

This makes `windows-gnu` on pair with `windows-msvc` when it comes to symbol exporting.
For MinGW it means both good things like correctly working dllimport/dllexport, ability to link with LLD and bad things like https://github.com/rust-lang/rust/issues/27438.

Not sure but maybe this should land behind unstable compiler option (`-Z`) or environment variable?

1  2 
src/librustc_codegen_llvm/callee.rs
src/librustc_codegen_llvm/consts.rs
src/librustc_codegen_llvm/context.rs
src/librustc_codegen_ssa/back/linker.rs
src/librustc_session/session.rs
src/test/run-make-fulldeps/tools.mk

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge