How to re-run libstd tests quickly?


#1

I’m doing some development on libstd (in particular, thread-local storage). I’m using ./x.py test src/libstd , and whenever I change anything, it re-compiles everything from scratch, which takes on the order of 10 minutes.

Is there any way for me to make a modification to a single file in libstd and then recompile the tests in a way that doesn’t start over from scratch and is faster?


#2
        --keep-stage N  stage to keep without recompiling

I think you’ll want --keep-stage 1 in this case.


#3

Ah perfect, thanks!