]> git.lizzy.rs Git - rust.git/commit
Auto merge of #40422 - alexcrichton:retry-linker-segfault, r=arielb1
authorbors <bors@rust-lang.org>
Sat, 11 Mar 2017 00:54:09 +0000 (00:54 +0000)
committerbors <bors@rust-lang.org>
Sat, 11 Mar 2017 00:54:09 +0000 (00:54 +0000)
commit71c058b3054b373bd13f68cd85d8b45adcb5f7d5
tree67203e8519f8813b3ceda618f5cb96d95645e394
parentf573db4f80c75f156df8a743f456bf087ec81dc2
parent993eae1816525e5cf855e448363098edd5935276
Auto merge of #40422 - alexcrichton:retry-linker-segfault, r=arielb1

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.