From 891377ce1962cdb31357d6580d6546ec22df2b4f Mon Sep 17 00:00:00 2001 From: xleroy Date: Wed, 3 Mar 2010 10:22:27 +0000 Subject: Switching to the new C parser/elaborator/simplifier git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1269 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- myocamlbuild.ml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 myocamlbuild.ml (limited to 'myocamlbuild.ml') diff --git a/myocamlbuild.ml b/myocamlbuild.ml new file mode 100644 index 0000000..41b4cfc --- /dev/null +++ b/myocamlbuild.ml @@ -0,0 +1,17 @@ +open Ocamlbuild_plugin;; +dispatch begin function +| After_rules -> + (* declare the tags "use_Cparser" and "include_Cparser" *) + ocaml_lib "cfrontend/Cparser"; + + (* force linking of libCparser.a when use_Cparser is set *) + flag ["link"; "ocaml"; "native"; "use_Cparser"] + (S[A"cfrontend/libCparser.a"]); + flag ["link"; "ocaml"; "byte"; "use_Cparser"] + (S[A"-custom"; A"cfrontend/libCparser.a"]); + + (* make sure libCparser.a is up to date *) + dep ["link"; "ocaml"; "use_Cparser"] ["cfrontend/libCparser.a"]; + +| _ -> () +end -- cgit v1.2.3