Clang error make buildworld

Dimitry Andric dim at FreeBSD.org
Wed May 4 14:20:40 UTC 2011


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.)


More information about the freebsd-current mailing list