]> git.lizzy.rs Git - rust.git/commit
rustc: Support auto-retry linking on a segfault
authorAlex Crichton <alex@alexcrichton.com>
Fri, 10 Mar 2017 17:04:27 +0000 (09:04 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 10 Mar 2017 17:13:53 +0000 (09:13 -0800)
commit993eae1816525e5cf855e448363098edd5935276
tree76c4c2b3d17273c7bbfff248b54f7007cd6635d9
parent5aaa60611cb7d89b03da8e56653ce09b0203f81d
rustc: Support auto-retry linking on a segfault

This is a last-ditch attempt to help our pain with dealing with #38878 on the
bots. A new environment variable is added to the compiler,
`RUSTC_RETRY_LINKER_ON_SEGFAULT`, which will instruct the compiler to
automatically retry the final linker invocation if it looks like the linker
segfaulted (up to 2 extra times).

Unfortunately there have been no successful attempts to debug #38878. The only
information seems to be that the linker (e.g. `ld` on OSX) is segfaulting
somewhere in some thread pool implementation. This appears to be spurious as
failed PRs will later merge.

The hope is that this helps the queue keep moving without clogging and delaying
PRs due to #38878.
.travis.yml
src/librustc_trans/back/link.rs