From owner-freebsd-ports@FreeBSD.ORG Fri Nov 30 13:26:37 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 E4E56D5A; Fri, 30 Nov 2012 13:26:37 +0000 (UTC) (envelope-from lifanov@mail.lifanov.com) Received: from mail.lifanov.com (mail.lifanov.com [206.125.175.12]) by mx1.freebsd.org (Postfix) with ESMTP id C1E7C8FC13; Fri, 30 Nov 2012 13:26:37 +0000 (UTC) Received: from [10.1.6.160] (cnet520-windstream.mcclatchyinteractive.com [166.108.16.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.lifanov.com (Postfix) with ESMTPSA id 6D75A19E752; Fri, 30 Nov 2012 13:26:36 +0000 (UTC) Message-ID: <50B8B40A.8010000@mail.lifanov.com> Date: Fri, 30 Nov 2012 08:26:34 -0500 From: Nikolai Lifanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Yamaya Takashi 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> <50B7E5CC.70203@kbh.biglobe.ne.jp> In-Reply-To: <50B7E5CC.70203@kbh.biglobe.ne.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Tobias Rehbein , Dimitry Andric , 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: Fri, 30 Nov 2012 13:26:38 -0000 On 11/29/2012 05:46 PM, Yamaya Takashi wrote: > 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. > > > Should it be sufficient to use logic like COMPILER_TYPE in combination with OSVERSION?