For a C project, I'm upgrading my build process fromMingGW-GCC / make and Android Studio under Windows (2 separate processes)toClang / CMake under Debian 8, using wclang and wine to compile and run the Windows buildIt seems to me as if we build for one platform at a time. I suppose there is a large part of the process of compiling and linking which is platform-specific; that cannot be avoided given the enormous differences in platform. I would expect that to be the majority of the compiler's work.But I wonder; does all cross-compilation work this way? Say we're compiling for 3 platforms: A, B, C.Let's say 25% of the work involved in compiling for A can be reused in compiling for B & C (things like building the AST). Surely we would want to do that, thus reducing overall build time?Are there such tools (particularly in relation to Clang, GCC)? And is there a name for such a sharing cross-compile, that I should know about? Thanks.
Cross compiling: Share compile steps between different target platforms?
gcc;clang