How to handle WITH_CLANG_IS_CC in ports

Yamaya Takashi yamayan at kbh.biglobe.ne.jp
Thu Nov 29 22:46:32 UTC 2012


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.





More information about the freebsd-ports mailing list