Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2024 13:53:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 224471] bsd.gecko.mk: add conditional for ccache
Message-ID:  <bug-224471-21738-GEBO7W0FfS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224471-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224471-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224471

--- Comment #21 from Denis Shaposhnikov <dsh@bamus.cz> ---
Hi,

my temporary (I hope it is temporary) solution is using custom bsd.overlay.=
mk:

.if !defined(_DSH_OVERLAY_INCLUDED)
_DSH_OVERLAY_INCLUDED=3D  yes

.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)
# From bsd.ccache.mk, because it isn't included yet. The system includes
# bsd.ccache.mk after bsd.overlay.mk.
.  if defined(CCACHE_WRAPPER_PATH)
CCACHE_PKG_PREFIX=3D      ${CCACHE_WRAPPER_PATH:C,/libexec/ccache$,,}
.  endif
CCACHE_PKG_PREFIX?=3D     ${LOCALBASE}
CCACHE_WRAPPER_PATH?=3D   ${CCACHE_PKG_PREFIX}/libexec/ccache
CCACHE_BIN?=3D            ${CCACHE_PKG_PREFIX}/bin/ccache

.  if ${.CURDIR:M*/www/firefox}
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224471
MOZ_OPTIONS+=3D   --with-ccache=3D"${CCACHE_BIN}"
.  endif
.endif # defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)

.endif # !defined(_DSH_OVERLAY_INCLUDED)

and build it using poudriere with my own overlay ports tree.

--=20
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224471-21738-GEBO7W0FfS>