Am Donnerstag, den 09.04.2015, 20:05 +0200 schrieb Daniel Bünzli: > Le jeudi, 9 avril 2015 à 19:27, Daniel Bünzli a écrit : > > Ah thanks ! That seems much better than the outputs of `ocamlfind query`. Is there any way to separate compilation instructions from pre-processing instructions ? > > Also why is -ppx passed during the linking phase ? -linkpkg enables linking but does not disable compilation. You could also have something like ocamlfind ocamlc -linkpkg -o executable ... module.ml I think the -ppx option is ignored by ocamlc if there is no module source, so ocamlfind doesn't care about it. Gerd > > ocamlfind ocamlc -linkpkg -only-show -package react,lwt.ppx > ocamlc.opt -I /Users/dbuenzli/.opam/4.02.1/lib/react -I /Users/dbuenzli/.opam/4.02.1/lib/bytes -I /Users/dbuenzli/.opam/4.02.1/lib/lwt -ppx ppx_lwt /Users/dbuenzli/.opam/4.02.1/lib/react/react.cma /Users/dbuenzli/.opam/4.02.1/lib/lwt/lwt.cma /Users/dbuenzli/.opam/4.02.1/lib/lwt/ppx.cma > > > > Daniel > > > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------