about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-05 03:51:35 +0200
committerGitHub <noreply@github.com>2025-08-05 03:51:35 +0200
commit3ec8b67672f7dd5d203df1b7e8c2ef726a45221a (patch)
tree0f85964907d818ea6532d390d1ba5efe4ee78f53 /compiler/rustc_interface/src/errors.rs
parenta1e41a02279589b0e048783e67812ed61e79976b (diff)
parent2f4b40fe4ebd61943ed10f25e6406be6ad68f18e (diff)
downloadrust-3ec8b67672f7dd5d203df1b7e8c2ef726a45221a.tar.gz
rust-3ec8b67672f7dd5d203df1b7e8c2ef726a45221a.zip
Rollup merge of #144779 - Kobzol:bootstrap-dot, r=jieyouxu
Implement debugging output of the bootstrap Step graph into a DOT file

There are already a bunch of ways how we can debug bootstrap, so why not add one more =D (ideally I'd like to consolidate these approaches somewhat, ```@Shourya742``` is looking into that, but I think that this specific debugging tool is orthogonal to the rest of them, and is quite useful).

This PR adds the option to render the bootstrap step graph into the DOT format, in order to understand what steps were executed, along with their fields (`Debug` output).

Here you can see an example of the generated DOT files for the `BOOTSTRAP_TRACING=1 ./x build compiler --stage 2 --dry-run` command on x64 Linux. One is with cached deps (what this PR does), the other one without.

[bootstrap-dot.zip](https://github.com/user-attachments/files/21548679/bootstrap-dot.zip)

Visual example:
<img width="1899" height="445" alt="image" src="https://github.com/user-attachments/assets/ae40e6d2-0ea8-48bb-b77e-6b21700b95ee" />

r? ```@jieyouxu```
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions