From owner-svn-ports-head@freebsd.org Sun Feb 25 03:10:34 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6203EF383B8; Sun, 25 Feb 2018 03:10:34 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D98E85B6F; Sun, 25 Feb 2018 03:10:34 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 089752EC56; Sun, 25 Feb 2018 03:10:34 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1P3AXLw087303; Sun, 25 Feb 2018 03:10:33 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1P3AXJD087301; Sun, 25 Feb 2018 03:10:33 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201802250310.w1P3AXJD087301@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Sun, 25 Feb 2018 03:10:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r462892 - in head/lang/rust: . files X-SVN-Group: ports-head X-SVN-Commit-Author: bdrewery X-SVN-Commit-Paths: in head/lang/rust: . files X-SVN-Commit-Revision: 462892 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2018 03:10:34 -0000 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]