myocamlbuild.ml fix for bytecode

This commit is contained in:
Adrien Guatto 2010-07-05 15:15:24 +02:00
parent 2d8e02d844
commit 3dfdf680ee

View file

@ -11,8 +11,11 @@ let df = function
(* Menhir does not come with menhirLib.cmxa so we have to manually by-pass
OCamlbuild's built-in logic and add the needed menhirLib.cmxa. *)
flag ["link"; "link_menhirLib"] (S [A "-I"; A "+menhirLib";
A "menhirLib.cmx"]);
flag ["link"; "native"; "link_menhirLib"] (S [A "-I"; A "+menhirLib";
A "menhirLib.cmx"]);
flag ["link"; "byte"; "link_menhirLib"] (S [A "-I"; A "+menhirLib";
A "menhirLib.cmo"]);
(* Add preproc.cmo to the ocaml pre-processor when use_preproc is set *)