From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q28LAZCo004018 for ; Thu, 8 Mar 2012 22:10:35 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqUEAJ8fWU9QW+UDgWdsb2JhbABDhF9Wr3QiAQEWJieCCgEBBQwXDwEiNAkCGAICGA4CAhAsGxmIDgeoJpIYgS+MBYIMgRYEkiuDGpJ7 X-IronPort-AV: E=Sophos;i="4.73,553,1325458800"; d="scan'208";a="148323374" Received: from plane.gmane.org ([80.91.229.3]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 08 Mar 2012 22:10:29 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S5kbT-0007Fe-Qu for caml-list@inria.fr; Thu, 08 Mar 2012 22:10:27 +0100 Received: from ks368928.kimsufi.com ([94.23.39.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2012 22:10:27 +0100 Received: from sylvain by ks368928.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2012 22:10:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Thu, 8 Mar 2012 21:10:16 +0000 (UTC) Message-ID: References: <1991A512A37E49ACA5AAD30A38D628BF@erratique.ch> <20120308170947.4847d3b3@caladan.esterel-technologies.com> <1331223575.2826.288.camel@thinkpad> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ks368928.kimsufi.com User-Agent: slrn/pre1.0.0-18 (Linux) Subject: [Caml-list] Re: oasis packaging questions On 08-03-2012, Gerd Stolpmann wrote: > Am Donnerstag, den 08.03.2012, 17:09 +0100 schrieb Jérémie Dimino: >> Le Thu, 8 Mar 2012 01:26:38 +0100, >> Daniel Bünzli a écrit : >> >> > 1) All the packages I distribute are made of a single module. For now >> > these were just installed as .cmo .cmx .cmxs. Now it seems oasis >> > forces me to create a .mllib even if I have only one module. Is that >> > correct ? >> >> Note that in general it is better to install a cma/cmxa, even if your >> library has only one module. The reason is that when building an >> executable, cmo/cmx files passed on the command line are always linked, >> while unused units of cma/cmxa files are not (unless you specify >> -linkall). > > Right. Just one refinement: if you also install the cmx _in addition to_ > the cmxa, you enable cross-module inlining for this particular module. > This is completely optional. I usually do it only when I think it makes > sense. (Cannot comment on how this is handled in oasis.) > oasis installs the .cmx by default (if he can found them). No distinction about "if it makes sense"... Cheers, Sylvain Le Gall -- My company: http://www.ocamlcore.com Linkedin: http://fr.linkedin.com/in/sylvainlegall Start an OCaml project here: http://forge.ocamlcore.org OCaml blogs: http://planet.ocamlcore.org