REcursive make and CC_HOST/CC_nto_x86_gcc

bridged with qdn.public.devtools
Post Reply
RoverFan

REcursive make and CC_HOST/CC_nto_x86_gcc

Post by RoverFan » Wed Sep 10, 2003 1:07 pm

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

Marian Oklapek

Re: REcursive make and CC_HOST/CC_nto_x86_gcc

Post by Marian Oklapek » Tue Sep 16, 2003 11:36 am

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.

Post Reply

Return to “qdn.public.devtools”