[Omake] preprocessing and profiling in omake

Sean Li drainpipe235 at gmail.com
Wed Sep 26 07:33:19 PDT 2007


Hi,

I'm having difficulty trying to combine preprocessing and profiling in
Omake.  ocamlcp does not take the -pp option so I need to use camlp4o to
create a new foo_pp.ml file from foo.ml without need for preprocessing, call
ocamlcp on this, and use the subsequent compiled files.  However, because I
might have files that depend on other files that might need preprocessing
and profiling, I cannot just compile the new .ml file since its basename is
not the same.

I have tried adding a foo_pp.cmo dependencies where I have also created a
rule, %_pp.ml that pipes the camlp4o output to the new file.  However, I'm
stuck at the last step where I need to override the actual build rule of
foo.cmo to make it move foo_pp.cmo to foo.cmo.  Any help would be greatly
appreciated.

- Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.metaprl.org/pipermail/omake/attachments/20070926/47209d75/attachment.html


More information about the Omake mailing list