Add a 'trace' mode (must be enabled at build time) that saves the
[tatoo.git] / myocamlbuild.ml
index 0ea5ff0..5ce02af 100644 (file)
@@ -28,9 +28,11 @@ let () = dispatch begin
   function
     | Before_rules -> ()
     | After_rules ->
-        set_flags [["ocaml";"compile"]; ["ocaml";"ocamldep"] ] macro_flags;
+        set_flags [["ocaml";"compile"]; ["ocaml"; "ocamldep"] ] macro_flags;
         pflag [ "ocaml"; "compile" ] "warning"   (fun s -> (S[ A"-w"; A s]));
         flag [ "ocaml"; "compile"; "debug" ] (S[ A"-g"; A"-ppopt"; A"-DDEBUG"]);
+        flag [ "ocaml"; "compile"; "htmltrace" ] (S[ A"-ppopt"; A"-DHTMLTRACE"]);
+        flag [ "ocaml"; "ocamldep"; "htmltrace" ] (S[ A"-ppopt"; A"-DHTMLTRACE"]);
         flag [ "ocaml"; "link"; "debug" ] (A"-g");
         flag [ "ocaml"; "compile"; "profile"] (S[A"-ppopt"; A"-DPROFILE"]);
         flag [ "ocaml"; "compile"; "profile"; "native"] (A"-p");