Stuart Henderson <s...@spacehopper.org> wrote:
> On 2022/06/28 12:47, Omar Polo wrote:
> > [...]
> > --- infrastructure/mk/bsd.port.mk   19 May 2022 13:12:40 -0000      1.1573
> > +++ infrastructure/mk/bsd.port.mk   28 Jun 2022 10:13:18 -0000
> > @@ -447,7 +447,7 @@ CCACHE_ENV ?=
> >  CCACHE_DIR ?= ${WRKOBJDIR_${PKGPATH}}/.ccache
> >  MAKE_ENV += CCACHE_DIR=${CCACHE_DIR} ${CCACHE_ENV}
> >  CONFIGURE_ENV += CCACHE_DIR=${CCACHE_DIR}
> > -COMPILER_WRAPPER += ccache
> > +COMPILER_WRAPPER += env CCACHE_DIR=${CCACHE_DIR} ccache
> 
> In case somebody set another flag in CCACHE_ENV as well, it should add that,
> and I think it's worth a comment in this case:
> 
> # scons cleans the environment when calling the compiler
> COMPILER_WRAPPER += env CCACHE_DIR=${CCACHE_DIR} ${CCACHE_ENV} ccache
> 
> Otherwise OK, though I do wonder if scons.port.mk could arrange something so
> that ${MAKE_ENV} is passed through properly..

even if it was there, i completely forgot about CCACHE_ENV...  I've
tried to arrange something in scons.port.mk, but i'm still having issues
to propagate the environment variables.

scons is ignoring the CC and CXX env variables (even if defined) and
just use 'cc' and 'c++'.  (to be fair, this is probably an issue I
introduced with a patch.)

i'll look more into this...

Reply via email to