While integrating swiftpm packages to other build systems it is good to have a way to recompile the package if something changes. Currently make and ninja uses .d files for this purpose.
While swiftpm is generating .d files when building, there are a lot of them, so currently we have special python script that os.walks the out dir and “merges” all the depfiles that where found. Moreover, this process is slow enough to take more time than incremental compilation itself.
Can we improve current situation? May be add ability to specify to swift build additional argument where it can put “complete” depfile?