I wonder that llvm-project directory in rust repository. According to the guide, when i modify the source code in llvm-project, it needs to build again after deleting the build folder. Is there a command or option to build only the modified part without deleting the build folder?
There's a stamp file named llvm-finished-building under the build directory -- if you find and remove that, the rust build will invoke LLVM cmake again. That should allow an incremental rebuild, to the best of cmake's ability.