From 3dfdf680ee20f865b4152b38637c7bd08da5b689 Mon Sep 17 00:00:00 2001 From: Adrien Guatto Date: Mon, 5 Jul 2010 15:15:24 +0200 Subject: [PATCH] myocamlbuild.ml fix for bytecode --- compiler/myocamlbuild.ml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/myocamlbuild.ml b/compiler/myocamlbuild.ml index 70bb724..5f5ac99 100644 --- a/compiler/myocamlbuild.ml +++ b/compiler/myocamlbuild.ml @@ -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 *)