What's the most convenient way to rebuild for a small change

If the pytorch source code has been already build with ninja, and there’s a very small change, such as printf, in one c++ code, not headers. what’s the most convenient way to rebuild it? What’s your best practices.

The CONTRIBUTING docs mention some useful workflows, such as using ccache etc. for incremental builds, which can speedup the development significantly.