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=AWL,HTML_MESSAGE autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id B41E1BBAF for ; Wed, 15 Oct 2008 13:00:49 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiIAAIZq9UjVx4q1mmdsb2JhbACCSCuPRIEoAQEBAQEICwoHEQagGUSMPIFr X-IronPort-AV: E=Sophos;i="4.33,415,1220220000"; d="scan'208,217";a="30362112" Received: from smtp-dub.microsoft.com ([213.199.138.181]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-MD5; 15 Oct 2008 13:00:27 +0200 Received: from DUB-EXHUB-C303.europe.corp.microsoft.com (65.53.213.93) by DUB-EXGWY-E802.partners.extranet.microsoft.com (10.251.129.2) with Microsoft SMTP Server (TLS) id 8.1.291.1; Wed, 15 Oct 2008 12:00:47 +0100 Received: from EA-EXMSG-C332.europe.corp.microsoft.com ([169.254.2.73]) by DUB-EXHUB-C303.europe.corp.microsoft.com ([65.53.213.93]) with mapi; Wed, 15 Oct 2008 12:00:25 +0100 From: Josh Berdine To: "caml-list@yquem.inria.fr" Date: Wed, 15 Oct 2008 12:00:25 +0100 Subject: ocamlbuild: ml -> cmx & cmi & o ? Thread-Topic: ocamlbuild: ml -> cmx & cmi & o ? Thread-Index: AckutTnIVw5frjfpRD2b2TNBnJtiyQ== Message-ID: <857DD0FDAC042B4485F9F5F4EA6751041E4CEEEDBC@EA-EXMSG-C332.europe.corp.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_857DD0FDAC042B4485F9F5F4EA6751041E4CEEEDBCEAEXMSGC332eu_" MIME-Version: 1.0 X-Spam: no; 0.00; cmx:01 cmi:01 cmx:01 cmi:01 mli:01 cmo:01 ocamlc:01 ocamlopt:01 ocamlopt:01 cheers:01 mli:01 cmo:01 ocamlc:01 cheers:01 iym:98 --_000_857DD0FDAC042B4485F9F5F4EA6751041E4CEEEDBCEAEXMSGC332eu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I observe that ocamlbuild does not build cmx cmi and o files from a ml file= (which has no associated mli) directly. Do others see different behavior?= Instead it builds cmo and cmi from the ml using ocamlc, and then builds t= he cmx and o files from there using ocamlopt. Is there a reason I'm missin= g that ocamlbuild does not have a default rule for this case, using only on= e call to ocamlopt? If so, is there an easy way to do this with a plugin? Cheers, Josh --_000_857DD0FDAC042B4485F9F5F4EA6751041E4CEEEDBCEAEXMSGC332eu_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I observe that ocamlbuild does not build cmx cmi and o= files from a ml file (which has no associated mli) directly.  Do others see = different behavior?  Instead it builds cmo and cmi from the ml using ocamlc, and then builds the cmx and o files from there using ocamlopt.  Is there a reason I’m missing that ocamlbuild does not have a default rule for t= his case, using only one call to ocamlopt?  If so, is there an easy way to= do this with a plugin?

 

Cheers,  Josh

--_000_857DD0FDAC042B4485F9F5F4EA6751041E4CEEEDBCEAEXMSGC332eu_--