From owner-freebsd-current@FreeBSD.ORG Wed Aug 18 13:13:47 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32AD11065696 for ; Wed, 18 Aug 2010 13:13:47 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id E9D298FC0C for ; Wed, 18 Aug 2010 13:13:46 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 49DFD1FFC33; Wed, 18 Aug 2010 13:13:45 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id E557F8454E; Wed, 18 Aug 2010 15:13:44 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Dimitry Andric References: <4C6A7357.8000606@andric.com> <20100817091515.4510ebfd@kan.dnsalias.net> <4C6A9AE7.3060704@andric.com> <86aaokb7so.fsf@ds4.des.no> <4C6BDB80.9000004@andric.com> Date: Wed, 18 Aug 2010 15:13:44 +0200 In-Reply-To: <4C6BDB80.9000004@andric.com> (Dimitry Andric's message of "Wed, 18 Aug 2010 15:09:20 +0200") Message-ID: <86k4no9i7r.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: Building world with clang X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2010 13:13:47 -0000 Dimitry Andric writes: > Dag-Erling Sm=C3=B8rgrav 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 --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no