setting ccache path
Hi I have just installed devel/ccache. I set up /etc/make.conf , /etc/csh.cshrc and /etc/profile according to /usr/local/share/doc/ccache/ccache-howto-freebsd.txt to include /usr/local/libexec/ccache in roots path but ccache doesn't get used. I think it is because roots path is set absolutely in .cshrc so the setting is /etc/csh.cshrc gets overridden. In a terminal if I set roots path to include /usr/local/libexec/ccache ccache works. I tested by timing make(1) in a port but I can see it is working anyway because /root/.ccache gets created and populated. Am I failing to follow ccache-howto-freebsd.txt or is it telling me something wrong and I should be adding /usr/local/libexec/ccache to roots path in .cshrc and .profile.? Actually I think a better solution would be to set CCACHE_PATH to /usr/local/libexec/ccache to avoid the shell looking there first for _every_ command invocation, but I'm not sure where is the best place to set it. .cshrc and/or .profile? thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setting ccache path
On Thu, 29 Apr 2010 22:58:37 +0100 Chris Whitehouse cwhi...@onetel.com wrote: I tested by timing make(1) in a port but I can see it is working anyway because /root/.ccache gets created and populated. You probably want to move that unless /root/ is on a big partition. Am I failing to follow ccache-howto-freebsd.txt or is it telling me something wrong and I should be adding /usr/local/libexec/ccache to roots path in .cshrc and .profile.? Whatever works. I seem to have commented-out the path in .cshrc. Actually I think a better solution would be to set CCACHE_PATH to /usr/local/libexec/ccache IIRC CCACHE_PATH tells ccache where to look for compilers. to avoid the shell looking there first for _every_ command invocation, csh wouldn't anyway, that's why we have to type rehash BTW I would suggest you also set CCACHE_HASH_COMPILER. It's a poorly documented FreeBSD extension intended to make world builds more cachable. I prefer to set it unconditionally. If you don't then building world, even a point release, invalidates the cache of port builds. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setting ccache path
On Thu, Apr 29, 2010 at 7:33 PM, RW rwmailli...@googlemail.com wrote: BTW I would suggest you also set CCACHE_HASH_COMPILER. It's a poorly documented FreeBSD extension intended to make world builds more cachable. I prefer to set it unconditionally. If you don't then building world, even a point release, invalidates the cache of port builds. Interesting, I've had problems with that and had ended up not using it for world builds. Thanks for including that info. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org