Move do_pacman_install calls before any do_vcs|wget|pkgConfig calls so that no dependencies are missing if the msys64 folder is deleted. Dependencies required only during compilation are called after do_vcs|wget|pkgConfig.
Install lld for clang only, as it isn't used for gcc compilation. (save 40MB for 32/64bit, 80MB for both)
Install rust only when a rust library is enabled. (if no rust library is built, saves 400MB for 32/64bit, 800MB for both)
do_pacman_install
calls before anydo_vcs|wget|pkgConfig
calls so that no dependencies are missing if the msys64 folder is deleted. Dependencies required only during compilation are called afterdo_vcs|wget|pkgConfig
.