I am working on a larger code base. To keep stuff organized I split the project into multiple sub projects with their own repository which are compiled as frameworks. (eg Math, Rendering, ImportExport, Parser, Core...)
Now by splitting it up into multiple modules I lose the whole-module-optimization. But as I have all the source code for all modules available and do not need to expose the frameworks' api in the final application I wonder if currently there is a way to tell the compiler "act if all this was in one single module and take all the code into account when you do your optimizations"
Of cause I want to keep my "import Rendering" and "import Parser" statements and I would like the compiler to still be strict about access modifiers not allowing me to call and internal function of another module.
(I am using OSX/Cocoa but most of the modules are pure swift with no cocoa dependencies)