From 401bd974a3f94d0c762704660a55c9343c793ef5 Mon Sep 17 00:00:00 2001 From: Anton Saietskii Date: Tue, 26 Sep 2023 15:27:52 +0259 Subject: [PATCH 691/692] Mk/bsd.gecko.mk: add conditional for ccache Mozilla stuff calls compiler directly using a full path, what prevents ccache from functioning. With this change, explicitly instruct mozconfig to enable ccache. NOTE: This doesn't cover situations where ccache installed not in $PATH --- Mk/bsd.gecko.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk index 11c2a20b9d4c..373eb332e2f6 100644 --- a/Mk/bsd.gecko.mk +++ b/Mk/bsd.gecko.mk @@ -129,6 +129,10 @@ RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/:S/power/pwr/} RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} . endif +.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE) +MOZ_OPTIONS+= --with-ccache +.endif + # Standard depends _ALL_DEPENDS= av1 event ffi graphite harfbuzz icu jpeg nspr nss png pixman sqlite vpx webp -- 2.42.0