REcursive make and CC_HOST/CC_nto_x86_gcc

We’ve recently changed our build system over to using the recursive make
structure described in the QNX docs. We would like to be able to use ccache
to speed up our compilation times. However, I can’t sem to figure out how to
tell make to use ‘ccache qcc’ as the compiler directive. I’ve tried setting
CC_HOST=/usr/local/bin/ccache qcc’ and CC_nto_x86_gcc=ccache qcc, but
neither of these attempts made any difference…make still uses
/usr/bin/qcc. Is there a specific place that I have to define
CC_HOST/CC_nto_x86_gcc (i.e. before/after including qtargets.mk. qmacros.mk,
etc)?
TIA

RoverFan wrote:

We’ve recently changed our build system over to using the recursive make
structure described in the QNX docs. We would like to be able to use ccache
to speed up our compilation times. However, I can’t sem to figure out how to
tell make to use ‘ccache qcc’ as the compiler directive. I’ve tried setting
CC_HOST=/usr/local/bin/ccache qcc’ and CC_nto_x86_gcc=ccache qcc, but
neither of these attempts made any difference…make still uses
/usr/bin/qcc. Is there a specific place that I have to define
CC_HOST/CC_nto_x86_gcc (i.e. before/after including qtargets.mk. qmacros.mk,
etc)?
TIA
\

In yuor common.mk file after: include $(QCONFIG)
write line: CC_nto_x86_gcc_qcc=/usr/local/bin/ccache /usr/bin/qcc
-Vgcc_ntox86 -c ( see file /usr/include/qconfig.mk )
You probably use qcc compiler (not gcc ) for compile files.
Best regards
Marian.