From: Michael Ekstrand <michael@elehack.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlbuild: build-only dependencies on syntax extensions
Date: Thu, 23 Jun 2011 14:50:11 -0500 [thread overview]
Message-ID: <4E0398F3.5030604@elehack.net> (raw)
In-Reply-To: <4E033A0D.5010300@elehack.net>
On 06/23/2011 08:05 AM, Michael Ekstrand wrote:
> In my source tree, I build a few syntax extensions which are then used
> to compile other modules. I do this as follows:
>
> flag_and_dep ["ocaml"; "ocamldep"; "use_lll"] &
> S[A"-ppopt"; P"pa_lll.cma"];
> flag_and_dep ["ocaml"; "compile"; "use_lll"] &
> S[A"-ppopt"; P"pa_lll.cma"]
Found a fix: by using 'flag' for the second, rather than 'flag_and_dep',
the dependency gets forced at ocamldep time but ignored at compile time,
so it doesn't get found as a transitive dependency and linked.
- Michael
prev parent reply other threads:[~2011-06-23 19:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 13:05 Michael Ekstrand
2011-06-23 19:50 ` Michael Ekstrand [this message]
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=4E0398F3.5030604@elehack.net \
--to=michael@elehack.net \
--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