oasis
oasis copied to clipboard
Support for using a generated syntax extension from within the same oasis build system
This feature request has been migrated from artifact #1000 on forge.ocamlcore.org. It was assigned to user102.
user112 posted on 2011-06-22 12:58:35:
Given a project with an extension pa_foo and corresponding program test_foo, it would be nice to be able to use pa_foo when compiling test_foo. As of 0.2.1~alpha1, this is not possible without manual intervention.
A possible fix, taken from an IRC conversation on June 21:
In _tags: "foo.ml": syntax_camlp4o, dep_of_the_syntax, use_myown_syntax_extension
In myocamlbuild.ml: define use_myown_syntax_extension in so that it adds -ppopt _build/src/syntax.cma