From owner-freebsd-ports@FreeBSD.ORG Thu Nov 29 22:46:32 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 201EA6D; Thu, 29 Nov 2012 22:46:32 +0000 (UTC) (envelope-from yamayan@kbh.biglobe.ne.jp) Received: from rcpt-expgw.biglobe.ne.jp (rcpt-expgw.biglobe.ne.jp [IPv6:2001:260:401:16::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7E06A8FC15; Thu, 29 Nov 2012 22:46:31 +0000 (UTC) Received: from vc-gw.biglobe.ne.jp by rcpt-expgw.biglobe.ne.jp (shby/5910021009) with SMTP id qATMkTg9025133; Fri, 30 Nov 2012 07:46:29 +0900 Received: from smtp-gw.biglobe.ne.jp ([172.21.175.156]) by vc-gw.biglobe.ne.jp (kbkr/0716090908) with ESMTP id qATMkTqY005847; Fri, 30 Nov 2012 07:46:29 +0900 X-Biglobe-Sender: Received: from [192.168.0.100] (KD027083060020.ppp-bb.dion.ne.jp [27.83.60.20]) by smtp-gw.biglobe.ne.jp id HAGDAC15AFDC; Fri, 30 Nov 2012 07:46:29 +0900 (JST) Message-ID: <50B7E5CC.70203@kbh.biglobe.ne.jp> Date: Fri, 30 Nov 2012 07:46:36 +0900 From: Yamaya Takashi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Dimitry Andric Subject: Re: How to handle WITH_CLANG_IS_CC in ports References: <20121125114918.GA35966@oshi.local> <20121127162737.GB1790@oshi.local> <50B7916E.4070102@mail.lifanov.com> <50B7A0A3.8030604@kbh.biglobe.ne.jp> <20121129194701.GA3017@oshi.local> <50B7D3F7.4020201@FreeBSD.org> In-Reply-To: <50B7D3F7.4020201@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Tobias Rehbein , Nikolai Lifanov , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 22:46:32 -0000 On 2012/11/30 06:30, Dimitry Andric wrote: > On 2012-11-29 20:47, Tobias Rehbein wrote:> Am Fri, Nov 30, 2012 at > 02:51:31AM +0900 schrieb Yamaya Takashi: >>> >>> Include Mk/bsd.compiler.mk, and >>> .if ${COMPILER_TYPE} == "clang" >>> clang specific code >>> .endif >>> >> >> Thanks. This is exactly what I was looking for. It is available in >> CURRENT only though. > > FYI, I merged bsd.compiler.mk and the rest of the COMPILER_TYPE logic to > stable/9 in r243041. It will not be in 9.1-RELEASE, though... > I am NOT committer. Please commit Mk/bsd.compiler.mk. [usr/ports/]Mk/bsd.compiler.mk is differ from [usr/src/]share/mk/bsd.compiler.mk. Ports version accepts another compiler, e.g. CC=icc, but Base version not.