How to handle WITH_CLANG_IS_CC in ports

Yamaya Takashi yamayan at kbh.biglobe.ne.jp
Fri Nov 30 14:17:52 UTC 2012


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.



More information about the freebsd-ports mailing list