From: Olivier Andrieu <oandrieu@nerim.net>
To: Edgar Friendly <thelema314@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Conditional compilation
Date: Tue, 18 Aug 2009 09:00:29 +0200 [thread overview]
Message-ID: <95513600908180000h2a813bb1hc2d935f532e16c24@mail.gmail.com> (raw)
In-Reply-To: <4A8A13EE.3080805@gmail.com>
On Tue, Aug 18, 2009 at 04:37, Edgar Friendly<thelema314@gmail.com> wrote:
> I'm starting to think that optcomp is just a mismatch for what I'm
> trying to do, and I'm trying to use the wrong tool for the job. That
> said, I don't think it's the best solution (especially with already long
> compile times for the project) to use both optcomp and
> Camlp4MacroParser, so I guess I should figure out how to do
> #if ocaml_version < (3, 11)
> in Camlp4MacroParser. I guess autoconf might be of some help here,
> although I don't see an easy way to to pass text from an
> autoconf-created Makefile through ocamlbuild into only some files' [-pp]
> commands. I think myocamlbuild.ml might be the key, maybe autoconf can
> produce it as well as Makefile.
sure, autoconf can produce any kind of file: it simply replace
occurrences of @VARIABLE@.
It's traditionally used to create makefiles or shell scripts but it'll
work on a .ml file just as well.
--
Olivier
next prev parent reply other threads:[~2009-08-18 7:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 2:00 Edgar Friendly
2009-08-18 2:26 ` [Caml-list] " Andre Nathan
2009-08-18 2:37 ` Edgar Friendly
2009-08-18 7:00 ` Olivier Andrieu [this message]
2009-08-21 9:39 ` Pietro Abate
2009-08-18 10:20 ` Richard Jones
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=95513600908180000h2a813bb1hc2d935f532e16c24@mail.gmail.com \
--to=oandrieu@nerim.net \
--cc=caml-list@yquem.inria.fr \
--cc=thelema314@gmail.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