zerodaycode / Zork

Project manager and builder automation tool for modern C++ projects
MIT License
151 stars 10 forks source link

Avoid the scan of system modules when the user doesn't declare at least one #116

Closed TheRustifyer closed 4 months ago

TheRustifyer commented 4 months ago

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.

TheRustifyer commented 4 months ago

Closed on #f7c928c