1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

- Don't needlessly depend on ccache with WITH_CCACHE_BUILD when NO_BUILD is set

With hat:	portmgr
This commit is contained in:
Bryan Drewery 2013-09-27 13:17:14 +00:00
parent 3887af0302
commit f2b717c401
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328465

View File

@ -2169,7 +2169,8 @@ BUILD_FAIL_MESSAGE+= Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reportin
# ccache support
# Support NO_CCACHE for common setups, require WITH_CCACHE_BUILD, and
# don't use if ccache already set in CC
.if !defined(NO_CCACHE) && defined(WITH_CCACHE_BUILD) && !${CC:M*ccache*}
.if !defined(NO_CCACHE) && defined(WITH_CCACHE_BUILD) && !${CC:M*ccache*} && \
!defined(NO_BUILD)
# Avoid depends loops between pkg and ccache
. if !${.CURDIR:M*/devel/ccache} && !${.CURDIR:M*/ports-mgmt/pkg}
BUILD_DEPENDS+= ${LOCALBASE}/bin/ccache:${PORTSDIR}/devel/ccache