I would like to use ccache for a build done with bjam and gcc as its toolset.
As this answer suggests ccache needs the compilation and linker call in separate steps to work correctly. However bjam is performing those in a single step.
How can I call/configure bjam to first compile and link afterwards and to work with ccache?
Put in your
~/user-config.jamNow when you request
gcctoolset (e.g. viab2 toolset=gcc) it will use the one initialized above.It's not true, quiet an opposite, b2 always perform compilation and likange in separate calls (there is no direct
ASM/C/CPP -> LIB/EXEgenerators defined for any toolset).