svn commit: r462892 - in head/lang/rust: . files

Bryan Drewery bdrewery at FreeBSD.org
Sun Feb 25 03:10:34 UTC 2018


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]


More information about the svn-ports-head mailing list