Re: Building world with clang

[ Available lists | Index of freebsd-current | Month of Aug 2010 | Week of 18 Aug 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dag-Erling Smørgrav <des@des.no>
Date
18 Aug 2010 09:15:55
Subject
Re: Building world with clang
Message-ID
86aaokb7so.fsf@ds4.des.no


[ Hide this part ]
Dimitry Andric <dimitry@andric.com> writes:
> Alexander Kabaev <kabaev@gmail.com> writes:
> > Does method 1) work fine with 'make buildenv'? I doubt that. I would
> > strongly suggest we should not lose this feature. I do not like the
> > idea of having to depend on -isystem in CFLAGS in such an environment.
> I have not tested make buildenv with this method, but since ${CC} is
> modified, not ${CFLAGS}, there is a reasonable chance that it might
> work. :)

I'm not a big fan of "reasonable chances" when it comes to the
toolchain.

> Note a similar method is already being using for the build32 stage on
> amd64, where ${CC} has a bunch of flags (including -isystem, -L and -B)
> appended.

No, what is used is a variant of method 1 *on top of* method 2 for a
very specific case. You need "a special version of clang" (method 2)
anyway to support cross-building.

DES
--
Dag-Erling Smrgrav - des@des.no

Elapsed time: 0.209 seconds