lto = true
causes dependency rebuilds when alternating cargo build
and cargo build --tests
#8669
Labels
A-lto
Area: link-time optimization
A-rebuild-detection
Area: rebuild detection and fingerprinting
C-bug
Category: bug
Problem
When setting
lto = true
in the dev profile, Cargo will rebuild all dependencies when switching betweencargo build
tocargo build --tests
(and vice-versa).Steps
cargo build
cargo build --tests
bitflags
dependencyNotes
Output of
cargo version
:cargo 1.46.0 (149022b1d 2020-07-17)
Also happens on the current nightly, which is
cargo 1.47.0-nightly (51b66125b 2020-08-19)
The text was updated successfully, but these errors were encountered: