caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] How to provide additional options for cppo in oasis?
@ 2017-05-19  6:32 Olaf Hering
  2017-05-19 14:43 ` Gabriel Scherer
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2017-05-19  6:32 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

How can an _oasis file pass additional options to cppo?
The documentation of cppo says in its Ocamlbuild section:

 "The following tags are available: cppo_D(X) ≡ '-D X'"

Where are such tags supposed to be?
For extlib I just created a wrapper as a workaround, which calls cppo
with the required options.

Olaf

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] How to provide additional options for cppo in oasis?
  2017-05-19  6:32 [Caml-list] How to provide additional options for cppo in oasis? Olaf Hering
@ 2017-05-19 14:43 ` Gabriel Scherer
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Scherer @ 2017-05-19 14:43 UTC (permalink / raw)
  To: Olaf Hering; +Cc: caml users

The look like ocamlbuild flags that you can pass explicitly in your
_tags file (outside the oasis-controlled zone), or through oasis using
the XOCamlbuildExtraArgs field (you may also need to use
XOCamlbuildPluginTags to enable the cppo plugin):

  http://oasis.forge.ocamlcore.org/MANUAL.html#plugin-ocamlbuild-doc-build

I would expect something like

  XOCamlbuildPluginTags: package(cppo_ocamlbuild)
  XOCamlbuildExtraArgs: -tag 'cppo_D(FOO)'

On Fri, May 19, 2017 at 8:32 AM, Olaf Hering <olaf@aepfle.de> wrote:
> How can an _oasis file pass additional options to cppo?
> The documentation of cppo says in its Ocamlbuild section:
>
>  "The following tags are available: cppo_D(X) ≡ '-D X'"
>
> Where are such tags supposed to be?
> For extlib I just created a wrapper as a workaround, which calls cppo
> with the required options.
>
> Olaf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-19 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-19  6:32 [Caml-list] How to provide additional options for cppo in oasis? Olaf Hering
2017-05-19 14:43 ` Gabriel Scherer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).