Successor of D137058. The intention is described as the second step in D137058. This is helpful if the build systems want to generate these output files in other places which is not the same with -o specified or the input file lived.
The discourse discussion is at: https://discourse.llvm.org/t/make-command-line-support-for-c-20-module-uniform-with-gcc/59144