Re: Can't buildworld since Clang update

From: Renato Botelho <rbgarga_at_gmail.com>
Date: Wed, 23 Feb 2011 10:31:34 -0300
On Wed, Feb 23, 2011 at 10:22 AM, datastream datastream.freecity
<datastream.freecity_at_gmail.com> wrote:
> I deleted all files in /usr/src and /usr/obj. it changes nothing, i still
> get same error.
>
> In /etc/make.conf:
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> # Don't die on warnings
> NO_WERROR=
> WERROR=
> STRIP=
> CFLAGS+=-fno-omit-frame-pointer

I'm not having problems here, my /etc/make.conf contains:

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

And my /etc/src.conf:

.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's building fine with clang.
-- 
Renato Botelho
Received on Wed Feb 23 2011 - 12:31:56 UTC

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