OCaml Forge

Detail: [#1000] Support for using a generated syntax extension from within the same oasis build system

Feature Requests: Browse | Download .csv | Monitor

[#1000] Support for using a generated syntax extension from within the same oasis build system

Date:
2011-06-22 12:58
Priority:
3
State:
Open
Submitted by:
Hezekiah Carty (hcarty)
Assigned to:
Sylvain Le Gall (gildor-admin)
Resolution:
None
Due in version:
None
Product:
OASIS
Component:
OASIS
Operating System:
All
 
Summary:
Support for using a generated syntax extension from within the same oasis build system

Detailed description
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

Followup

No Followups Have Been Posted

Attached Files:

Changes:

Field Old Value Date By
Due in version0.3.02016-09-03 21:25gildor-admin
assigned_tonone2011-06-22 13:23gildor-admin
Due in versionNone2011-06-22 13:23gildor-admin