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


-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to