Re: CLANG; still cc in use when building the WORLD with CLANG?

From: Olivier Smedts <olivier_at_gid0.org>
Date: Tue, 30 Aug 2011 15:14:19 +0200
2011/8/30 Alex Kuster <vertex.symphony_at_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_at_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."
Received on Tue Aug 30 2011 - 11:14:20 UTC

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