Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 03:10:33 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462892 - in head/lang/rust: . files
Message-ID:  <201802250310.w1P3AXJD087301@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sun Feb 25 03:10:33 2018
New Revision: 462892
URL: https://svnweb.freebsd.org/changeset/ports/462892

Log:
  Support WITH_CCACHE_BUILD for bundled LLVM

Modified:
  head/lang/rust/Makefile
  head/lang/rust/files/config.toml

Modified: head/lang/rust/Makefile
==============================================================================
--- head/lang/rust/Makefile	Sun Feb 25 03:09:49 2018	(r462891)
+++ head/lang/rust/Makefile	Sun Feb 25 03:10:33 2018	(r462892)
@@ -198,6 +198,12 @@ post-patch:
 		done; \
 	done
 
+.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)
+CCACHE_VALUE=	true
+.else
+CCACHE_VALUE=	false
+.endif
+
 do-configure:
 	${SED} -E \
 		-e 's,%PREFIX%,${PREFIX},' \
@@ -206,6 +212,7 @@ do-configure:
 		-e 's,%PYTHON_CMD%,${PYTHON_CMD},' \
 		-e 's,%CHANNEL%,${RUST_CHANNEL},' \
 		-e 's,%TARGET%,${RUST_TARGET},' \
+		-e 's,%CCACHE%,${CCACHE_VALUE},' \
 		< ${FILESDIR}/config.toml \
 		> ${WRKSRC}/config.toml
 # The FreeBSD 10 autotools fix may modify some files just before

Modified: head/lang/rust/files/config.toml
==============================================================================
--- head/lang/rust/files/config.toml	Sun Feb 25 03:09:49 2018	(r462891)
+++ head/lang/rust/files/config.toml	Sun Feb 25 03:10:33 2018	(r462892)
@@ -24,6 +24,9 @@ mandir = "%MANDIR%"
 # Rust release channel.
 channel = "%CHANNEL%"
 
+[llvm]
+ccache = %CCACHE%
+
 [target.%TARGET%]
 
 [dist]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802250310.w1P3AXJD087301>