about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-03-27 17:04:21 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-03-29 13:21:33 -0500
commit7470592d0ba8a7be88d5d897fe4f0796fdbfa318 (patch)
treeb578f27d172c39c038cb95595b0350c5b9e63bbc /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent02af015d1c85474b8213868be3febc342927a3b6 (diff)
downloadrust-7470592d0ba8a7be88d5d897fe4f0796fdbfa318.tar.gz
rust-7470592d0ba8a7be88d5d897fe4f0796fdbfa318.zip
Fix `x test src/tools/error_index_generator --stage {0,1}`
There were two fixes needed:
1. Use `top_stage` instead of `top_stage - 1`. There was a long and torturous comment about trying to match rustdoc's version, but it works better without the hard-coding than with.
2. Make sure that `ci-llvm/lib` is added to LD_LIBRARY_PATH. Previously the error index would be unable to load LLVM for stage0 builds.

At some point we should probably have a discussion about how rustdoc stages should be numbered;
confusion between 0/1/2 has come up several times in bootstrap now.

Note that this is still broken when using `download-rustc = true` and `--stage 1`,
but that's *really* a corner case and should affect almost no one. `--stage {0,2}`
work fine with download-rustc.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions