Recursive make, CC_HOST/CC_nto_x86_gcc (sorry for x-post)

Firstly…sorry for the croos-post- accidentally posted in
qdn.public.devtools first :frowning:

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

I don’t know if this is a way how it is supposed to do, but the following:

COMPILER_DRIVER=

CC_nto_x86_gcc = …

works.

Also works:

CC_nto_x86_gcc_qcc = …

“RoverFan” <RoverFan_SE7@Hotmail.com> wrote in message
news:bjn72i$98g$1@inn.qnx.com

Firstly…sorry for the croos-post- accidentally posted in
qdn.public.devtools first > :frowning:

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 <RoverFan_SE7@hotmail.com> 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)?

The usual place for stuff like that is the qconf-override.mk file, which
gets included at the bottom of qconfig.mk and is specifically there
for overriding the configuration items. The makefiles look in a couple
of places for the override file, but my personal preference is to
set the QCONF_OVERRIDE environment variable to point at it.

Alternatively, you can just create a new configuration file and change
the /usr/include/qconfig.mk link to point at it.


Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8