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

2011-08-30 Thread Hartmann, O.
On 08/30/11 22:25, Kevin Oberman wrote: On Tue, Aug 30, 2011 at 12:34 PM, Hartmann, O. wrote: On 08/30/11 21:27, Kevin Oberman wrote: On Tue, Aug 30, 2011 at 11:13 AM, Hartmann, O. wrote: On 08/30/11 19:58, Dimitry Andric wrote: On 2011-08-30 18:44, Alex Kuster wrote: Thanks for pointi

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

2011-08-30 Thread Garrett Cooper
On Tue, Aug 30, 2011 at 1:25 PM, Kevin Oberman wrote: > On Tue, Aug 30, 2011 at 12:34 PM, Hartmann, O. > wrote: >> On 08/30/11 21:27, Kevin Oberman wrote: >>> >>> On Tue, Aug 30, 2011 at 11:13 AM, Hartmann, O. >>>  wrote: On 08/30/11 19:58, Dimitry Andric wrote: > > On 2011-08-

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

2011-08-30 Thread Kevin Oberman
On Tue, Aug 30, 2011 at 12:34 PM, Hartmann, O. wrote: > On 08/30/11 21:27, Kevin Oberman wrote: >> >> On Tue, Aug 30, 2011 at 11:13 AM, Hartmann, O. >>  wrote: >>> >>> On 08/30/11 19:58, Dimitry Andric wrote: On 2011-08-30 18:44, Alex Kuster wrote: > > Thanks for pointing out th

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

2011-08-30 Thread Hartmann, O.
On 08/30/11 21:27, Kevin Oberman wrote: On Tue, Aug 30, 2011 at 11:13 AM, Hartmann, O. wrote: On 08/30/11 19:58, Dimitry Andric wrote: On 2011-08-30 18:44, Alex Kuster wrote: Thanks for pointing out those details ! This whole thing about make.conf&src.conf is very confusing and gives the

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

2011-08-30 Thread Kevin Oberman
On Tue, Aug 30, 2011 at 11:13 AM, Hartmann, O. wrote: > On 08/30/11 19:58, Dimitry Andric wrote: >> >> On 2011-08-30 18:44, Alex Kuster wrote: >>> >>> Thanks for pointing out those details ! >>> This whole thing about make.conf&  src.conf is very confusing and gives >>> the >>> impression of somet

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

2011-08-30 Thread Hartmann, O.
On 08/30/11 19:58, Dimitry Andric wrote: On 2011-08-30 18:44, Alex Kuster wrote: Thanks for pointing out those details ! This whole thing about make.conf& src.conf is very confusing and gives the impression of something half ported ... The only thing that is "half ported" at the moment, is

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

2011-08-30 Thread Dimitry Andric
On 2011-08-30 18:44, Alex Kuster wrote: Thanks for pointing out those details ! This whole thing about make.conf& src.conf is very confusing and gives the impression of something half ported ... The only thing that is "half ported" at the moment, is an easy "use clang to build world" switch.

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

2011-08-30 Thread Hartmann, O.
On 08/30/11 18:44, Alex Kuster wrote: Thanks for pointing out those details ! This whole thing about make.conf& src.conf is very confusing and gives the impression of something half ported ... I aggree. It is, indeed. Because I honestly though that src.conf was for freebsd sources as indica

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

2011-08-30 Thread Hartmann, O.
On 08/30/11 18:20, Dimitry Andric wrote: On 2011-08-30 11:48, Hartmann, O. wrote: I'm building world with CLANG (or I pretend to do so). In my /etc/make.conf I use these lines: ### ### CLANG ### .if defined(USE_CLANG) .if !empty(.CURDIR:M/usr/src*) You should a

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

2011-08-30 Thread Alex Kuster
Thanks for pointing out those details ! This whole thing about make.conf & src.conf is very confusing and gives the impression of something half ported ... Because I honestly though that src.conf was for freebsd sources as indicated by the manpage (and in fact, compiled sources that way without is

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

2011-08-30 Thread Dimitry Andric
On 2011-08-30 11:48, Hartmann, O. wrote: I'm building world with CLANG (or I pretend to do so). In my /etc/make.conf I use these lines: ### ### CLANG ### .if defined(USE_CLANG) .if !empty(.CURDIR:M/usr/src*) You should add "|| !empty(.CURDIR:M:/usr/obj*)" to thi

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

2011-08-30 Thread Hartmann, O.
On 08/30/11 15:14, Olivier Smedts wrote: 2011/8/30 Alex Kuster: 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 !de

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

2011-08-30 Thread Hartmann, O.
On 08/30/11 12:09, Alex Kuster wrote: Hi, read this -> http://lists.freebsd.org/pipermail/freebsd-current/2011- August/thread.html#26468 Using the /etc/make.conf with CURDIR approach seems to be broken from some time now ... I would also recommend you to move the clang stuff for base system whe

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

2011-08-30 Thread Olivier Smedts
2011/8/30 Alex Kuster : > 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 .end

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

2011-08-30 Thread Hartmann, O.
On 08/30/11 12:09, Alex Kuster wrote: Hi, read this -> http://lists.freebsd.org/pipermail/freebsd-current/2011- August/thread.html#26468 Using the /etc/make.conf with CURDIR approach seems to be broken from some time now ... I would also recommend you to move the clang stuff for base system whe

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

2011-08-30 Thread Alex Kuster
Hi, read this -> http://lists.freebsd.org/pipermail/freebsd-current/2011- August/thread.html#26468 Using the /etc/make.conf with CURDIR approach seems to be broken from some time now ... I would also recommend you to move the clang stuff for base system where it belongs ( /etc/src.conf .. see sr

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

2011-08-30 Thread Hartmann, O.
Hello. I'm building world with CLANG (or I pretend to do so). In my /etc/make.conf I use these lines: ### ### CLANG ### .if defined(USE_CLANG) .if !empty(.CURDIR:M/usr/src*) CFLAGS= -O3 -march=native -mtune=native -fno-strict-aliasing -pipe COPTFLAGS= -O3 -march=