about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-15 11:03:48 +0000
committerbors <bors@rust-lang.org>2017-01-15 11:03:48 +0000
commit7a526ca05a6a1223429ee4f3de6260f0e5a2b24a (patch)
treee3c3ec43a33c8325550ce735ea37e7d7bdab83e6 /src/test/run-pass/thinlto
parentd274e554ad8327d4042ed71c1e3e5fa23d36f414 (diff)
parent36a926a2164f8e7eaed7bbfd261f11976243cb76 (diff)
downloadrust-7a526ca05a6a1223429ee4f3de6260f0e5a2b24a.tar.gz
rust-7a526ca05a6a1223429ee4f3de6260f0e5a2b24a.zip
Auto merge of #39052 - alexcrichton:fix-rebuild, r=brson
rustbuild: Skip the build_helper crate in tests

I've been noticing some spurious recompiles of the final stage on Travis lately
and in debugging them I found a case where we were a little to eager to update
a stamp file due to the build_helper library being introduced during the testing
phase.

Part of the rustbuild system detects when libstd is recompiled and automatically
cleans out future directories to ensure that dirtyness propagation works. To do
this rustbuild doesn't know the artifact name of the standard library so it just
probes everything in the target directory, looking to see if anything changed.

The problem here happened where:

* First, rustbuild would compile everything (a normal build)
* Next, rustbuild would run all tests
* During testing, the libbuild_helper library was introduced into the target
  directory, making it look like a change happened because a file is newer
  than the newest was before
* Detecting a change, the next compilation would then cause rustbuild to clean
  out old artifacts and recompile everything again.

This commit fixes this problem by correcting rustbuild to just not test the
build_helper crate at all. This crate doesn't have any unit tests, nor is it
intended to. That way the target directories should stay the same throughout
testing after a previous build.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions