Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2011 15:14:19 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        Alex Kuster <vertex.symphony@gmail.com>
Cc:        freebsd-current@freebsd.org, "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Subject:   Re: CLANG; still cc in use when building the WORLD with CLANG?
Message-ID:  <CABzXLYOpM=iBWff6SL%2B9tqw2z7DRAn70KOV3gmx%2BN0wkqo2sGA@mail.gmail.com>
In-Reply-To: <201108300709.23538.vertex.Symphony@gmail.com>
References:  <4E5CB1E9.9080801@zedat.fu-berlin.de> <201108300709.23538.vertex.Symphony@gmail.com>

index | next in thread | previous in thread | raw e-mail

2011/8/30 Alex Kuster <vertex.symphony@gmail.com>:
> I would also recommend you to move the clang stuff for base system where it
> belongs ( /etc/src.conf .. see src.conf(5)  ).

>From http://wiki.freebsd.org/BuildingFreeBSDWithClang

Add the following lines to /etc/make.conf:

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang -E
.endif
# Don't die on warnings
NO_WERROR=
WERROR=
# Don't forget this when using Jails!
NO_FSCHG=

So make.conf seems to be the good place.

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYOpM=iBWff6SL%2B9tqw2z7DRAn70KOV3gmx%2BN0wkqo2sGA>