How to force x.py to build from stage 2

Hi Masters,

This is my first email in this comminity, hope you guys doing well. I am trying to port the rust to a new target, right now I am working on adding the target dependent part in libstd.The problem I am facing is if I change anything the whole building would start over: stage 0, stage 1, and stage 2 which takes a long time. Is there a way to force the build script to build from stage 2? My change only would be taken into use in stage 2, so not rebuilding stage 0 and stage 1 should be not a problem for my current work.

Thanks, Baoshan

Does this help: https://rust-lang.github.io/rustc-guide/how-to-build-and-run.html#suggested-workflows-for-faster-builds-of-the-compiler

EDIT: This link now lives at https://rust-lang.github.io/rustc-guide/building/suggested.html

Hi Mark,

That’s what I am looking for.

Thanks, Baoshan

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.