English is not my mother tongue. Sorry for language mistakes :-)
I have a project written in C++ that contains a lot of macros to control functionality, each option can be enabled or disabled individually. They share the same core (the core also includes some macros to enable or disable certain features, so ccache doesn't work very well).
Can be compiled by the following script:
cd build cmake .. ${some options...} make It works fine, but I have to run it with different cmake options, to set different macros, and most of the code compiles many times. This is a waste of resources and time!
So, I need a tool like this:
cd build build-make-file .. --futures="future1,future2,...,futureN" make After this script, all code will be compiled into binaries.
For this, I think caching should be a bit more complicated. It can cache AST or machine code etc. In other words, the cache manager should split the code into more parts.
So is there some tool to do this?