about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-03-06 14:44:38 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-03-09 07:00:13 -0800
commit6f431491d0c9b96858c05c0ea30edaf44f9e7c12 (patch)
treef1b3635dd83b2474c12991b8f1208d2229a99d0a /src/libstd/sys/unix/stack_overflow.rs
parent3be02fc41032febc28e22a8a41ec7dc85ca1ce19 (diff)
downloadrust-6f431491d0c9b96858c05c0ea30edaf44f9e7c12.tar.gz
rust-6f431491d0c9b96858c05c0ea30edaf44f9e7c12.zip
rustc: Prefer loading crates in the sysroot
This commit is a random stab in the dark to fix the spurious failures on #39518.
The leading theory of the spurious failures on Windows is that the compiler is
loading a path in the `deps` folder, passing it to `link.exe`, and then this is
racing with Cargo itself updating those paths.

This race, however, has a few unique properties:

* It's isolated to just libstd. Most crates are never passed to the linker and
  simultaneously being worked on by Cargo. Cargo's typical execution of the
  dependency graph never hits this problem.
* The crates are already all located in the sysroot in addition to the `deps`
  folder. This means that the compiler actually has two candidates of crates to
  load, and it's just arbitrarily rejecting one.

Together this means that we shouldn't need to fix this problem "in the large"
and we can instead just fix it in this isolated situation (hopefully). To solve
this the compiler's been updated to prefer crates from the sysroot to leave
Cargo's structure to itself.

We'll see if this actually allows the PR to land...
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions