A way to reload toolchain file without removing downloaded dependencies


Is there a way to quickly reload the toolchain file, after applying some changes?

Normally I do it like this:

# Remove everything except dependencies downloaded with FetchContent module.
rm -rf !(_deps) 
# Inside the "_deps" directory ...
cd _deps
# ... remove all build and subbuild directories, leaving "*-src" directories effectively.
rm -rf *build && cd ..

This seems OK, but during configure and generate steps some large projects downloaded with FetchContent, like LLVM or ARM GNU GCC toolchain, still clog the “configure” stage.

Is there some workaround?