2

I have a project where several of the OCaml source files use IFDEF. Is there a simple way to tell OCamlbuild that all .ml files for this project should be preprocessed by camlp4.macro?

Jon Smark
  • 2,528
  • 24
  • 31

1 Answers1

3

At the root of your project, you can create a _tag file containing:

true: camlp4of

here, the f suffix means means "full camlp4", that is camlp4o with all standard extensions (parsers, grammars, quotations, macros, and list comprehensions). For more details, see the manual.

Thomas
  • 5,047
  • 19
  • 30