Created attachment 223651 [details]
Use bsd.ccache.mk values when building
When using FreeBSD 12 llvm11 is used setting CC/CXX to a full path to localbase's binaries.
Use just the name and use ENV and MAKE_ENV when building such that PATH (using ccache's libexec symlink dir) and CCACHE_DIR set.
How do other ports handle these compiler variables? I'm not sure moving from LOCALBASE/bin calls to PATH/env based invocations is the correct method. Shouldn't this be handled by Mk/bsd.ccache.mk?
Since there isn't any framework support for kmk builds other ports are not setting do-build targets. Look at bsd.ports.mk do-build target this is just emulating it.