Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2011 14:51:14 -0200
From:      Renato Botelho <rbgarga@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: Clang error make buildworld
Message-ID:  <CAESiWkmNkcTe1ivRB04YBX3MYE=nUB4_i3Znp2xCJ52fhwKuRw@mail.gmail.com>
In-Reply-To: <4EFB4637.10604@FreeBSD.org>
References:  <201105040107.p4417NTR048534@pozo.com> <CAESiWk=wdZDNxn%2BHcLeOVTF55jMTEP3zVOb1ivAPgNYi2JTB3w@mail.gmail.com> <4EFB4324.1060002@FreeBSD.org> <CAESiWkm8%2BmyDwanNKd4KCgVjHLNaLRBh82nFPGrDAO80e6w49Q@mail.gmail.com> <4EFB4637.10604@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 28, 2011 at 2:39 PM, Dimitry Andric <dim@freebsd.org> wrote:
> On 2011-12-28 17:32, Renato Botelho wrote:
>>
>> On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric<dim@freebsd.org> =A0wrot=
e:
>
> ...
>
>>> Most likely, it is due to the way you set CC, CXX and/or CPP in
>>> make.conf. =A0Can you please post that file?
>>
>>
>> Sure, follow my src.conf:
>>
>> .if !defined(CC) || ${CC} =3D=3D "cc"
>> CC=3Dclang
>> .endif
>> .if !defined(CXX) || ${CXX} =3D=3D "c++"
>> CXX=3Dclang++
>> .endif
>> .if !defined(CPP) || ${CPP} =3D=3D "cpp"
>> CPP=3Dclang-cpp
>> .endif
>
>
> This part should go into make.conf, *not* src.conf. =A0If 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=3D
>> WERROR=3D
>> # Don't forget this when using Jails!
>> NO_FSCHG=3D
>
>
> This is fine to have in src.conf.

Worked like a charm. Thanks!!

--=20
Renato Botelho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAESiWkmNkcTe1ivRB04YBX3MYE=nUB4_i3Znp2xCJ52fhwKuRw>