From: "François Bobot" <francois.bobot@cea.fr>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] META file standards for native plugins
Date: Thu, 09 Apr 2015 13:47:17 +0200 [thread overview]
Message-ID: <552666C5.6070103@cea.fr> (raw)
Hi,
Another topic which need a standard is native dynamic plugins. In fact there is a defacto standard
(used by some libraries and tools, but not specified in ocamlfind documentation) but it is a bad one.
archive(plugin,native) = "toto.cmxs"
It is a bad one because the semantic of META file says that the value of `archive(native)` can be
return when you ask the value of `archive` with the predicate `plugin` and the predicate `native` true.
I discussed it with some people and the current proposition where
* archive(plugin_native)
* archive(plugin)
* archive(shared)
I personally prefer the `shared` predicate because it corresponds to the `-shared` option of
ocamlopt that creates `.cmxs`.
The predicate `shared` would be added to ocamlfind documentation. The prospective `ocamlfind check
META` could recommend to add an `archive(shared)` if the `archive(native)` exists. For a transition
period `archive(plugin,native)` and `archive(shared)` would be both present in the META.
Thoughts or suggestions?
Best regards,
--
François Bobot
next reply other threads:[~2015-04-09 11:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-09 11:47 François Bobot [this message]
2015-04-09 13:27 ` Gabriel Scherer
2015-04-09 14:47 ` François Bobot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552666C5.6070103@cea.fr \
--to=francois.bobot@cea.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox