about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-22 04:42:36 +0000
committerbors <bors@rust-lang.org>2021-05-22 04:42:36 +0000
commit21e1cd9b95854bec31a4d05992561ef47c0c8b07 (patch)
tree8ac9f0e3e2c47e59eac778304e8a952bc80b3333 /compiler/rustc_codegen_llvm/src
parent51d1610356b135cf34445621df58d257a2e090d2 (diff)
parent3221a5e65bd5c90a2fe9cfe341110b3bd8fb6e16 (diff)
downloadrust-21e1cd9b95854bec31a4d05992561ef47c0c8b07.tar.gz
rust-21e1cd9b95854bec31a4d05992561ef47c0c8b07.zip
Auto merge of #85531 - luqmana:flip-gc, r=petrochenkov
Swap TargetOptions::linker_is_gnu default from false to true and update targets as appropriate.

#85274 gated the `--gc-sections` flag on targets that specified `linker_is_gnu` to stop us from passing it to incompatible linkers. But that had the unintended effect of the flag no longer being passed on targets for which it is valid and hence caused a regression in binary size. Given that most `ld`-style linkers are GNU compatible, this change flips our default for `linker_is_gnu` from false to true. That also means updating the targets that relied on the previous default:
* Apple
* Illumos
* L4Re (not sure about this one)
* MSVC
* NvtPtx
* Solaris

Fixes #85519
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions