- List.iter (fun s ->
- List.iter (fun (fl, fu) ->
- pflag s fl fu) macro_flags
- )
- [["ocaml";"compile"];
- ["ocaml";"ocamldep"] ]
-;
+ set_flags [["ocaml";"compile"]; ["ocaml";"ocamldep"] ] macro_flags;
+ flag [ "ocaml"; "compile"; "debug" ] (S[ A"-g"; A"-ppopt"; A"-DDEBUG"]);
+ flag [ "ocaml"; "link"; "debug" ] (A"-g");
+ flag [ "ocaml"; "compile"; "profile"] (S[A"-ppopt"; A"-DPROFILE"]);
+ flag [ "ocaml"; "compile"; "profile"; "native"] (A"-p");
+ flag [ "ocaml"; "link"; "profile"; "native"] (A"-p");
+ pflag [ "ocaml"; "compile"; "native" ] "inline" (fun i -> (S[ A"-inline"; A i ]));
+ pflag [ "ocaml"; "compile" ] "unsafe" (fun s -> (if s = "true" then S[A"-ppopt";A "-unsafe"] else N));
+