Building world with clang

Dag-Erling Smørgrav des at des.no
Wed Aug 18 09:15:55 UTC 2010


Dimitry Andric <dimitry at andric.com> writes:
> Alexander Kabaev <kabaev at 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 Smørgrav - des at des.no


More information about the freebsd-current mailing list