Commit 02f2e7c
committed
Fix
The error index is a complicated tool (because it depends on rustdoc)
and this fix is only one of many possible approaches.
Here is the sequence of fixes that culminated in this commit:
1. The error index gives an error that libLLVM-nightly.so isn't found.
2. libLLVM-nightly.so is present in stage1/lib, but not in stage0/lib.
3. `builder.sysroot()` returns `stage0-sysroot`, but
`builder.rustc_libdir()` returns `stage0/lib`.
4. Therefore, special case the sysroot to be `stage0` for the error index.
Another, possibly better fix is to stop depending on rustdoc at all, and
call it as a binary or separate out a shared crate. But that's a larger
refactor.x.py doc --stage 1 src/tools/error_index_generator
1 parent 4b6653d commit 02f2e7c
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
394 | 402 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 403 | + | |
399 | 404 | | |
400 | 405 | | |
401 | 406 | | |
| |||
0 commit comments