From owner-svn-ports-all@freebsd.org Tue May 8 19:14:52 2018 Return-Path: Delivered-To: svn-ports-all@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 0E8FEFC6D43; Tue, 8 May 2018 19:14:52 +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 A0A597D76E; Tue, 8 May 2018 19:14:51 +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 7C0512E6FF; Tue, 8 May 2018 19:14:51 +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 w48JEpNL097308; Tue, 8 May 2018 19:14:51 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w48JEpvI097307; Tue, 8 May 2018 19:14:51 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201805081914.w48JEpvI097307@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Tue, 8 May 2018 19:14:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r469390 - in branches/2018Q2/devel/ccache: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: bdrewery X-SVN-Commit-Paths: in branches/2018Q2/devel/ccache: . files X-SVN-Commit-Revision: 469390 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 19:14:52 -0000 Author: bdrewery Date: Tue May 8 19:14:50 2018 New Revision: 469390 URL: https://svnweb.freebsd.org/changeset/ports/469390 Log: MFH: r469300 r469389 Add clang60 support Update howto - 11.0+ base can just use WITH_CCACHE_BUILD=yes [1] - Remove older advise for libtool which is no longer needed - No need for clang unused argument hack anymore PR: 222765 [1] Submitted by: pete@nomadlogic.org [1] (based on) Approved by: portmgr (implicit) Modified: branches/2018Q2/devel/ccache/Makefile branches/2018Q2/devel/ccache/files/ccache-howto-freebsd.txt.in Directory Properties: branches/2018Q2/ (props changed) Modified: branches/2018Q2/devel/ccache/Makefile ============================================================================== --- branches/2018Q2/devel/ccache/Makefile Tue May 8 19:12:16 2018 (r469389) +++ branches/2018Q2/devel/ccache/Makefile Tue May 8 19:14:50 2018 (r469390) @@ -3,7 +3,7 @@ PORTNAME= ccache PORTVERSION= 3.3.5 -PORTREVISION= 0 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= https://www.samba.org/ftp/ccache/ \ LOCAL/bdrewery @@ -82,7 +82,7 @@ GNU_COMPILERS+= 34 42 43 44 45 46 47 48 49 5 6 7 8 CCACHE_COMPILERS+= cc c++ CC gcc g++ ${GNU_COMPILERS:S|^|gcc|} ${GNU_COMPILERS:S|^|g++|} .if ${PORT_OPTIONS:MCLANGLINK} -CLANG_COMPILERS+= 33 34 35 36 37 38 39 40 50 -devel +CLANG_COMPILERS+= 33 34 35 36 37 38 39 40 50 60 -devel CCACHE_COMPILERS+= clang clang++ ${CLANG_COMPILERS:S|^|clang|} ${CLANG_COMPILERS:S|^|clang++|} .endif Modified: branches/2018Q2/devel/ccache/files/ccache-howto-freebsd.txt.in ============================================================================== --- branches/2018Q2/devel/ccache/files/ccache-howto-freebsd.txt.in Tue May 8 19:12:16 2018 (r469389) +++ branches/2018Q2/devel/ccache/files/ccache-howto-freebsd.txt.in Tue May 8 19:14:50 2018 (r469390) @@ -6,7 +6,12 @@ To use ccache for ports, just add WITH_CCACHE_BUILD=ye /etc/make.conf. The rest of this guide is for building /usr/src and other checkouts. -To use ccache for base add the following to /etc/make.conf. +To use ccache for base (11.0+) just add WITH_CCACHE_BUILD=yes +to /etc/src.conf. Refer to src.conf(5) for more information. + +------------------------------------------------------------------------------- + +For older releases, before 11.0, add the following to /etc/make.conf. You can replace cc and c++ with the compilers of your choice. (remember that only GCC and Clang can build world and kernel) @@ -28,7 +33,7 @@ For csh/tcsh Add the following to /etc/csh.cshrc: For icc users: Add %%ICCPREFIX%% to CCACHE_PATH --- +------------------------------------------------------------------------------- To use distcc: @@ -52,15 +57,6 @@ reset PATH=$CCACHE_PATH and try again. Make sure you run 'ccache-update-links' after you install/uninstall additional compilers in order to create/remove compiler links. - -Clang will return a lot of 'unused argument' warnings: they are harmless. -Just add this to /etc/make.conf if you want to hide them: -.if ${CC:T} == "clang" -CFLAGS+= -Qunused-arguments -.endif - -Any time you change CC/CXX you need to reinstall devel/libtool or you -will run in to problems. --