]> git.lizzy.rs Git - rust.git/commit
Auto merge of #47035 - acfoltzer:dep-info-tweak, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 17 Jan 2018 09:22:22 +0000 (09:22 +0000)
committerbors <bors@rust-lang.org>
Wed, 17 Jan 2018 09:22:22 +0000 (09:22 +0000)
commit3e49ada7528bf664b2ccc8516a9ef7d21849a70b
treea4795cd8c82d743c3241066798bc2ee9bfe031c3
parentda569fa9ddf8369a9809184d43c600dc06bd4b4d
parent8c09d29d04dabc96a3ae88d914e3b54220952943
Auto merge of #47035 - acfoltzer:dep-info-tweak, r=alexcrichton

Remove dep-info files as targets in themselves

If you ask `rustc` to `--emit dep-info`, the resulting dependency file contains a rule for producing the dependency file itself. This differs from the output of `gcc -MD` or `clang -MD`, which only includes dependency rules for the object files produced.

Tools like Ninja often consume and delete dependency files as soon as they’re produced for performance reasons, particularly on Windows. In the case of `rustc` output, though, the recently-deleted dependency file is cached by Ninja as a target, and therefore triggers a rebuild every time.

This very small patch removes the dep-info file from the list of output filenames, so it matches the behavior of gcc and clang.