[Bug 224471] bsd.gecko.mk: add conditional for ccache

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 04 Sep 2023 14:04:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224471

--- Comment #17 from Anton Saietskii <vsasjason@gmail.com> ---
First of all I need to say that I'm building Firefox on a potato-laptop with 2C
Merom CPU & 3G RAM. Been struggling with Rust, but finally maganed to make
everything build correctly.
It takes 6-7 hours, so I manually added following lines to bsd.gecko.mk:

.if defined(WITH_CCACHE_BUILD) !defined(NO_CCACHE)
MOZ_OPTIONS+=   --with-ccache
.endif

2nd rebuild after that took only 1 hour. (I'll upload poudriere build logs by
request.)

Can we please, please get this finally landed in ports tree?
(Yes, simply adding "--with-ccache" doesn't cover poudriere's static ccache
from host, but anyway we can already enable basic setup and work on advanced
one later. Right now ccache doesn't work at all.)

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