Revision 5813de5a51287e4af8ba2a85fa68a2afcd4e21e5 authored by Gabriel Scherer on 08 May 2016, 13:29:25 UTC, committed by Roberto Di Cosmo on 12 May 2016, 08:08:39 UTC
Since 4.03 (really for flambda), the native compiler is sensibly more sensitive to the presence of .cmx files. There is now a warning if the .cmx for a module is absent, unless its interface (.cmi) has been compiled with -opaque.
1 parent e550505
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
Computing file changes ...