FreeBSD Bugzilla – Attachment 125886 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-bsd.port.mk-ccache.txt
patch-bsd.port.mk-ccache.txt (text/plain; charset=windows-1252), 1.12 KB, created by
Bryan Drewery
on 2012-08-04 02:00:34 UTC
(
hide
)
Description:
patch-bsd.port.mk-ccache.txt
Filename:
MIME Type:
Creator:
Bryan Drewery
Created:
2012-08-04 02:00:34 UTC
Size:
1.12 KB
patch
obsolete
>--- bsd.port.mk.orig 2012-08-04 02:57:19.000000000 +0200 >+++ bsd.port.mk 2012-08-04 02:58:43.000000000 +0200 >@@ -934,6 +934,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 >+# >+# WITH_CCACHE_BUILD >+# - Enable CCACHE support (devel/ccache) >+# CCACHE_DIR >+# - Directory to use for ccache objects >+# Default: /usr/obj/ccache > # > # For install: > # >@@ -2217,6 +2224,21 @@ > .endif > .endif > >+# 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*} >+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:${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