Re: Clang error make buildworld

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 04 May 2011 16:20:41 +0200
On 2011-05-04 15:44, Manfred Antar wrote:
...
> src.conf:
>
> WITHOUT_DYNAMICROOT=yes
> WITH_IDEA=yes
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> #Don't die on warnings
> NO_WERROR=
> WERROR=

Aha.  Please move the clang-related stuff to make.conf instead, e.g.
this fragment:

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
#Don't die on warnings
NO_WERROR=
WERROR=

It will not work properly if you put it in src.conf.  (You can really
only use src.conf for WITH_FOO and WITHOUT_BAR type settings.)
Received on Wed May 04 2011 - 12:20:40 UTC

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