Currently, we are relying on the results of the directory scanning for the target system modules even if they don't exist. That causes to iterate over the compilers targets directories for the .pcm(s) of the system headers after modularizing them, even if the user didn't request any system header to be compiled as a module.
Therefore, we are wasting machine cycles instead of checking if its a needed operation. So its required to fix them just by checking if the user declared some system module.
Refactor
Currently, we are relying on the results of the directory scanning for the target system modules even if they don't exist. That causes to iterate over the compilers targets directories for the
.pcm(s)
of the system headers after modularizing them, even if the user didn't request any system header to be compiled as a module.Therefore, we are wasting machine cycles instead of checking if its a needed operation. So its required to fix them just by checking if the user declared some system module.