Date: Fri, 30 Nov 2012 23:18:01 +0900 From: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp> To: Nikolai Lifanov <lifanov@mail.lifanov.com> Cc: Tobias Rehbein <tobias.rehbein@web.de>, Dimitry Andric <dim@FreeBSD.org>, freebsd-ports@freebsd.org Subject: Re: How to handle WITH_CLANG_IS_CC in ports Message-ID: <50B8C019.9060101@kbh.biglobe.ne.jp> In-Reply-To: <50B8B40A.8010000@mail.lifanov.com> References: <20121125114918.GA35966@oshi.local> <CAJp7RHZuB2t=QAVs3QwAqz7T%2BMbwiL1mMz8o9u0C4S%2BBKX_3Lg@mail.gmail.com> <20121127162737.GB1790@oshi.local> <CAJp7RHY17pm_FNMn6vUHELU8FPBMhC0nWKVRYNPY3FRdpULUuA@mail.gmail.com> <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> <50B8B40A.8010000@mail.lifanov.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2012/11/30 22:26, Nikolai Lifanov wrote: > 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? > > > No. .include "${PORTSDIR}/Mk/bsd.compiler.mk" #Now, COMPILER_TYPE is defined.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50B8C019.9060101>