[regression] when using lld on windows and nightly cargo, no-op builds recompile everything #8284
Labels
A-rebuild-detection
Area: rebuild detection and fingerprinting
C-bug
Category: bug
P-high
Priority: High
regression-from-stable-to-nightly
Regression in nightly that previously worked in stable.
Problem
A user reported https://bugzilla.mozilla.org/show_bug.cgi?id=1640643, where no-op builds were repeatedly recompiling Rust code.
Steps
lld
as the linker.cargo build
cargo build
againPossible Solution(s)
The
CARGO_LOG=cargo::core::compiler::fingerprint=trace
output linked in the above bug contains a number of:and similar lines. It looks like eac3b66 (cc @ehuss ), as part of a refactoring, introduced an additional requirement of
.dll.exp
files being present. This appears to be a regression.Removing
cargo/src/cargo/core/compiler/build_context/target_info.rs
Lines 313 to 320 in 9fcb8c1
should fix the bug.
Notes
Output of
cargo version
:cargo 1.45.0-nightly (500b2bd01 2020-05-18)
The text was updated successfully, but these errors were encountered: