]> git.proxmox.com Git - cargo.git/commitdiff
Auto merge of #7417 - alexcrichton:less-hashing, r=Eh2406
authorbors <bors@rust-lang.org>
Mon, 30 Sep 2019 14:57:58 +0000 (14:57 +0000)
committerbors <bors@rust-lang.org>
Mon, 30 Sep 2019 14:57:58 +0000 (14:57 +0000)
Go back to not hashing `RUSTFLAGS` in `-Cmetadata`

This is a moral revert of #6503 but not a literal code revert. This
switches Cargo's behavior to avoid hashing compiler flags into
`-Cmetadata` since we've now had multiple requests of excluding flags
from the `-Cmetadata` hash: usage of `--remap-path-prefix` and PGO
options. These options should only affect how the compiler is
invoked/compiled and not radical changes such as symbol names, but
symbol names are changed based on `-Cmetadata`. Instead Cargo will still
track these flags internally, but only for reinvoking rustc, and not for
caching separately based on rustc flags.

Closes #7416


Trivial merge