Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "François Pottier" <francois.pottier@inria.fr>
To: Gabriel Scherer <gabriel.scherer@gmail.com>
Cc: caml users <caml-list@inria.fr>, github@mjambon.com
Subject: Re: [Caml-list] cppo, ocamlbuild, and dependencies
Date: Wed, 1 Feb 2017 14:40:41 +0100	[thread overview]
Message-ID: <d0a6f82e-1c53-b894-3af1-43fc5687d131@inria.fr> (raw)
In-Reply-To: <CAPFanBH-yhmSVUrob1pWh2iE=buetsND=0921UQfow2YseXDcw@mail.gmail.com>


On 01/02/2017 11:19, Gabriel Scherer wrote:
> In the meantime, I implemented an amusing hack at the ocamlbuild level

Thanks Gabriel for your quick reply.

This seems amusing indeed, but does not quite work for me. Running 
ocamlbuild
once fails, complaining that A.ml does not exist (whereas A.cppo.ml exists).
If I immediately run ocamlbuild again, the build succeeds.

I think I would prefer to use a slightly less amusing approach and just find
out, ahead of time, what the dependencies are. In the rule that transforms
%.cppo.ml to %.ml, could I just read the source file, looking #include
patterns, and ask that the included files be built first?

--
François Pottier
francois.pottier@inria.fr
http://gallium.inria.fr/~fpottier/

  reply	other threads:[~2017-02-01 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 21:50 François Pottier
2017-02-01 10:19 ` Gabriel Scherer
2017-02-01 13:40   ` François Pottier [this message]
2017-02-01 17:10     ` Gabriel Scherer

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=d0a6f82e-1c53-b894-3af1-43fc5687d131@inria.fr \
    --to=francois.pottier@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@gmail.com \
    --cc=github@mjambon.com \
    /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