Re: Clang error make buildworld

From: Renato Botelho <rbgarga_at_gmail.com>
Date: Wed, 28 Dec 2011 14:51:14 -0200
On Wed, Dec 28, 2011 at 2:39 PM, Dimitry Andric <dim_at_freebsd.org> wrote:
> On 2011-12-28 17:32, Renato Botelho wrote:
>>
>> On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric<dim_at_freebsd.org>  wrote:
>
> ...
>
>>> Most likely, it is due to the way you set CC, CXX and/or CPP in
>>> make.conf.  Can you please post that file?
>>
>>
>> Sure, follow my src.conf:
>>
>> .if !defined(CC) || ${CC} == "cc"
>> CC=clang
>> .endif
>> .if !defined(CXX) || ${CXX} == "c++"
>> CXX=clang++
>> .endif
>> .if !defined(CPP) || ${CPP} == "cpp"
>> CPP=clang-cpp
>> .endif
>
>
> This part should go into make.conf, *not* src.conf.  If you want to use
> clang only for src, not for anything else, put:
>
> .if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*}
> # [... set CC, etc here... ]
>
> .endif
>
>
>> # Don't die on warnings
>> NO_WERROR=
>> WERROR=
>> # Don't forget this when using Jails!
>> NO_FSCHG=
>
>
> This is fine to have in src.conf.

Worked like a charm. Thanks!!

-- 
Renato Botelho
Received on Wed Dec 28 2011 - 15:51:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC