]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #84794 - ChrisDenton:dedup-native-libs, r=petrochenkov
authorbors <bors@rust-lang.org>
Wed, 5 May 2021 03:56:26 +0000 (03:56 +0000)
committerbors <bors@rust-lang.org>
Wed, 5 May 2021 03:56:26 +0000 (03:56 +0000)
Deduplicate native libs before they are passed to the linker

Stop spamming the linker with the same native library over and over again, if they directly follow from each other. This would help prevent [this situation](https://github.com/MSxDOS/ntapi/issues/2).

Issue #38460 has been open since 2016 so I think it's worth making an incomplete fix that at least addresses the most common symptom and without otherwise changing how Rust handles native libs. This PR is intended to be easy to revert (if necessary) when a more permanent fix is implemented.


Trivial merge