It may not be traditional, but it's been done before. https://firefox-source-docs.mozilla.org/build/buildsystem/unified-builds.html lists some of the pros and cons of passing all source code to the compiler at once.