Other CCACHE_BUILD_TYPE=command/wrapper

I've been unable to use the wrapper. It seems that the PATH needs some sort of export.
I am not sure what's going on.

/usr/share/mk/bsd.compiler.mk
Code:
# Need to ensure CCACHE_WRAPPER_PATH is the first in ${PATH}
PATH:=  ${PATH:C,:?${CCACHE_WRAPPER_PATH}(/world)?(:$)?,,g}
PATH:=  ${CCACHE_WRAPPER_PATH}:${PATH}

I need to modify /usr/share/mk/bsd.suffixes.mk to prepend PATH=${PATH} to the command then it uses ccache, otherwise compilation still works but without using ccache.

Do you guys know anything about this?
 
This solves the "problem" without editing any files in /usr/share/mk
Code:
....
.include <bsd.prog.mk>
.export PATH

I am not sure if I should file a PR or not.
 
Back
Top