xref: /aosp_15_r20/prebuilts/rust/bootstrap/README.md (revision b40554a23088fb75aa6945dfe8e65169c8484da3)
1*b40554a2SAndroid Build Coastguard WorkerThis directory documents the procedure used to produce our rustc-1.34.2.
2*b40554a2SAndroid Build Coastguard Worker
3*b40554a2SAndroid Build Coastguard Worker1. Go into mrustc-bootstrap and run bootstrap.bash. Saving the output is
4*b40554a2SAndroid Build Coastguard Worker   recommended in case something goes wrong. If the final command shows a diff,
5*b40554a2SAndroid Build Coastguard Worker   remove all generated files and try again.
6*b40554a2SAndroid Build Coastguard Worker2. In the base of the bootstrap kit, adjust `version_sequence` in `chain.py`
7*b40554a2SAndroid Build Coastguard Worker   to contain the sequence of rustc versions leading to the one you want.
8*b40554a2SAndroid Build Coastguard Worker   Patchlevels can be skipped here (e.g. 1.33.0 -> 1.34.2, no need to build
9*b40554a2SAndroid Build Coastguard Worker   1.34.1 or 1.34.0).
10*b40554a2SAndroid Build Coastguard Worker3. Run chain.py. Again, I recommend saving the output to a log. If you want
11*b40554a2SAndroid Build Coastguard Worker   assurance that you are using the same rustc tarballs we were, verify the
12*b40554a2SAndroid Build Coastguard Worker   dumped hashes at the end of the build against the included logfile.
13*b40554a2SAndroid Build Coastguard Worker4. From your final compiler, grab the contents of
14*b40554a2SAndroid Build Coastguard Worker
15*b40554a2SAndroid Build Coastguard Worker   * `build/x86_64-unknown-linux-gnu/stage3` (bin and lib)
16*b40554a2SAndroid Build Coastguard Worker   * `build/x86_64-unknown-linux-gnu/stage3-tools-bin/` (place in lib)
17