diff options
| author | Josh Stone <jistone@redhat.com> | 2019-11-11 14:22:23 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2019-11-11 14:22:23 -0800 |
| commit | 1aee3e4d087755b40df50533dbfbc5fb80c90ff7 (patch) | |
| tree | 8629a91f1028fc1d4d5e328337a093c7318677a6 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 56237d75b4271a8a2e0f47d86ea76ebf6d966152 (diff) | |
| download | rust-1aee3e4d087755b40df50533dbfbc5fb80c90ff7.tar.gz rust-1aee3e4d087755b40df50533dbfbc5fb80c90ff7.zip | |
Use a relative bindir for rustdoc to find rustc
In bootstrap, we set `RUSTC_INSTALL_BINDIR` to `config.bindir`, so rustdoc can find rustc relative to the toolchain sysroot. However, if a distro script like Fedora's `%configure` sets an absolute path, then rustdoc's `sysroot.join(bin_path)` ignores that sysroot altogether. That would be OK once the toolchain is actually installed, but it breaks the in-tree doc tests during the build, since `/usr/bin/rustc` is still the old version. So now we try to make `RUSTC_INSTALL_BINDIR` relative to the sysroot prefix in the first place.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
