mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Provide make.conf/src.conf instructions that still allow ccache to be used for
the lib32 bits in a buildworld. The recent committed fix would just revert to regular gcc. Submitted by: Rob Farmer <rfarmer@predatorlabs.net> (via cvs-all@)
This commit is contained in:
parent
adac021c92
commit
5672b7a6d1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264702
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ccache
|
||||
PORTVERSION= 3.1.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://samba.org/ftp/ccache/ CRITICAL
|
||||
|
||||
|
@ -4,12 +4,10 @@
|
||||
|
||||
To use ccache add the following to /etc/make.conf
|
||||
|
||||
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && !defined(NOCCACHE)
|
||||
.if !defined(CC) || ${CC} == "cc"
|
||||
CC=%%PREFIX%%/%%CCLINKDIR%%/world-cc
|
||||
.endif
|
||||
.if !defined(CXX) || ${CXX} == "c++"
|
||||
CXX=%%PREFIX%%/%%CCLINKDIR%%/world-c++
|
||||
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
|
||||
.if !defined(NOCCACHE)
|
||||
CC:=${CC:C,^cc,%%PREFIX%%/%%CCLINKDIR%%/world-cc,1}
|
||||
CXX:=${CXX:C,^c\+\+,%%PREFIX%%/%%CCLINKDIR%%/world-c++,1}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user