cxx_link_flags @= [ A "-g" ];
end
else begin
- compile_flags @= [A "-noassert"; A "-unsafe"];
+ compile_flags @= [A "-noassert"];
+ pp_macro_options @= [ A "-unsafe" ];
native_compile_flags @= [ A "-inline"; A ocaml_inline ];
cxx_flags @= [ A "-O3" ]
end;
rule "compile cpp -> o" ~prod:"%.o" ~deps:[ "%.cpp"] cxx_compile;
let syntax_flags = S ([ A "-syntax"; A "camlp4o";
- S (ppopt [A "-printer" ; A"ocaml"]);
+ S (ppopt [A "-printer" ; A"Camlp4OCamlAstDumper"]);
S (ppopt !pp_macro_options) ])
in
flag [ "ocaml"; "ocamldep"] syntax_flags;