FreeBSD Bugzilla – Attachment 125884 Details for
Bug 169579
[bsd.port.mk] [exp-run] ccache support for building ports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-ccache.txt
patch-ccache.txt (text/plain), 1.11 KB, created by
Bryan Drewery
on 2012-07-01 17:30:08 UTC
(
hide
)
Description:
patch-ccache.txt
Filename:
MIME Type:
Creator:
Bryan Drewery
Created:
2012-07-01 17:30:08 UTC
Size:
1.11 KB
patch
obsolete
>--- bsd.port.mk.orig 2012-06-30 12:38:02.000000000 -0500 >+++ bsd.port.mk 2012-07-01 11:13:06.000000000 -0500 >@@ -942,6 +942,13 @@ > # that are explicitly marked MAKE_JOBS_UNSAFE. User settable. > # MAKE_JOBS_NUMBER > # - Override the number of make jobs to be used. User settable. >+## cacche >+# >+# WANT_CCACHE >+# - Enable CCACHE support (devel/ccache) >+# CCACHE_DIR >+# - Directory to use for ccache objects >+# Default: /usr/obj/ccache > # > # For install: > # >@@ -2208,6 +2215,21 @@ > .endif > .endif > >+# ccache support >+# Support NO_CCACHE for common setups, require WANT_CCACHE, and don't use if ccache already set in CC >+.if !defined(NO_CCACHE) && defined(WANT_CCACHE) && !${CC:M*ccache*} >+CCACHE_DIR?= /usr/obj/ccache >+ >+# 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 >+. endif >+ >+# Prepend the ccache dir into the PATH and setup ccache env >+MAKE_ENV+= PATH=${LOCALBASE}/libexec/ccache/world:${PATH} \ >+ CCACHE_DIR=${CCACHE_DIR} >+.endif >+ > PTHREAD_CFLAGS?= > PTHREAD_LIBS?= -pthread
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 169579
: 125884 |
125885
|
125886
|
125887