diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-03-03 10:22:27 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-03-03 10:22:27 +0000 |
commit | 891377ce1962cdb31357d6580d6546ec22df2b4f (patch) | |
tree | 4ff7c38749cc7a4c1af411c5aa3eb7225c4ae6a1 /myocamlbuild.ml | |
parent | 018edf2d81bf94197892cf1df221f7eeac1f96f6 (diff) |
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
Diffstat (limited to 'myocamlbuild.ml')
-rw-r--r-- | myocamlbuild.ml | 17 |
1 files changed, 17 insertions, 0 deletions
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 |