Building world with clang
Dag-Erling Smørgrav
des at des.no
Wed Aug 18 13:13:47 UTC 2010
Dimitry Andric <dimitry at andric.com> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > 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.
> Eventually, clang should support building objects for all targets from
> one executable, but not in the short term, unfortunately...
That doesn't matter. You still need two versions of the compiler. If
you're cross-building sprac64 on an i386 machine, for instance, you need
an i386 version of the compiler that produces sparc64 binaries *and* a
sparc64 version that produces sparc64 binaries. The former is used only
during the build, the latter is what will be installed on the target.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-current
mailing list