I'd like to use ccache(1) to rebuild kernels. In my current setup the buildworld target uses the ccache(1) symlinks as expected, but the buildkernel one doesn't.
I'm using the suggested snippet (/usr/local/share/doc/ccache/ccache-howto-freebsd.txt) in /etc/make.conf. It's similar to what i've seen on other threads:
I don't know enough make(1) syntax to understand how those variable expansion work, and I'm not finding anything about the C and CXX variables in make.conf(5) or in /usr/share/examples/etc/make.conf anyway...
Is there some fundamental difference between world and kernel that's preventing the compilation system from going through the ccache symlinks ?
I'm using the suggested snippet (/usr/local/share/doc/ccache/ccache-howto-freebsd.txt) in /etc/make.conf. It's similar to what i've seen on other threads:
Code:
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
.if !defined(NOCCACHE)
C:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
.endif
.endif
I don't know enough make(1) syntax to understand how those variable expansion work, and I'm not finding anything about the C and CXX variables in make.conf(5) or in /usr/share/examples/etc/make.conf anyway...
Is there some fundamental difference between world and kernel that's preventing the compilation system from going through the ccache symlinks ?