Revision 0ffe4b8d0885688c21bb4fe07f7a52c198e55285 authored by Francois Berenger on 02 October 2019, 03:00:42 UTC, committed by Francois Berenger on 02 October 2019, 03:00:42 UTC
to follow more closely the one in opam-repository
1 parent c4a31a8
myocamlbuild.ml
open Ocamlbuild_plugin ;;
let _ = dispatch begin function
| After_rules ->
dep ["compile"; "c"] ["config.h"];
(* flag ["ocaml"; "compile"] & S[A"-ccopt"; A"-O9"]; *)
flag ["compile"; "c"] & S[ A"-ccopt"; A"-D_GNU_SOURCE"; A"-ccopt"; A"-fPIC" ];
flag ["link"; "library"; "ocaml"; "byte"; "use_libparmap"] &
S[A"-dllib"; A"-lparmap_stubs"; ];
flag ["link"; "library"; "ocaml"; "native"; "use_libparmap"] &
S[A"-cclib"; A"-lparmap_stubs"; ];
dep ["link"; "ocaml"; "use_libparmap"] ["libparmap_stubs.a"];
flag ["link"; "ocaml"; "link_libparmap"] (A"libparmap_stubs.a");
| _ -> ()
end
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...