From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=INFO_TLD autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9790BBC0C for ; Tue, 30 Jan 2007 00:01:43 +0100 (CET) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.172]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0TN1oYg022770 for ; Tue, 30 Jan 2007 00:01:51 +0100 Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/8.12.11/smtpout02/MantshX 4.0) with ESMTP id l0TN1cEB014242; Mon, 29 Jan 2007 15:01:39 -0800 (PST) Received: from [17.206.24.201] (a17-206-24-201.apple.com [17.206.24.201]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id l0TN192C026045; Mon, 29 Jan 2007 15:01:31 -0800 (PST) In-Reply-To: References: <45A03E09.3050907@motion-twin.com> <71217FB6-B868-40DA-9019-230D9EEA7FEB@epfl.ch> <13C8AAD6-95A2-4080-A7C2-A318D52E66F8@philippewang.info> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <192C8DEF-B471-443B-A6CA-E2CC0759637B@mac.com> Reply-To: j h woodyatt Content-Transfer-Encoding: 7bit From: James Woodyatt Subject: Re: [Caml-list] Building OSX Universal Binaries Date: Mon, 29 Jan 2007 15:01:07 -0800 To: "Corey O'Connor" , caml-list@inria.fr X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5446:2.3.11,1.2.37,4.0.164 definitions=2007-01-25_08:2007-01-25,2007-01-25,2007-01-25 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0701160000 definitions=main-0701250045 X-Miltered: at concorde with ID 45BE7CDE.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; woodyatt:01 osx:01 ocamlopt:01 gcc:01 ocaml:01 ocaml:01 woodyatt:01 jhw:01 2007,:98 48,:98 corey:98 xcode:98 neck:98 compilers:01 wrote:01 On Jan 16, 2007, at 09:48, Corey O'Connor wrote: > On 1/15/07, Philippe Wang wrote: >> >> However, ocamlopt can be configured to produce x86 asm on a PPC, >> can't it ? >> And XCode can build universal binaries on both ppc and x86... >> So I guess you just need to call gcc with the right parameters... > > Actually, I have no idea. That'd be great if it did. I haven't seen any easy way to configure OCaml as a crosstool. The trick you would use here is to run the native PPC version of the OCaml compilers on x86 under Rosetta. I don't know if this works, but I would expect it to work. Be a pain in the neck, but it should work. -- james woodyatt member of technical staff apple computer, inc.