ocaml / oasis

Cabal like system for OCaml
Other
125 stars 45 forks source link

Support source files written in revised syntax #494

Open gildor478 opened 3 years ago

gildor478 commented 3 years ago

This feature request has been migrated from artifact #848 on forge.ocamlcore.org. It was assigned to user102.

user824 posted on 2010-12-29 22:21:20:

I had to add this to the end of the _tags file for oasis to build my project: true: camlp4r

It'd be nice if I could specify this in _oasis, like: 'BuildDepends: camlp4r' (I see there is syntax_camlp4r, but it doesn't do what I want). It'd be even better if this can be customized on a per source-file or directory basis.

user102 replied on 2010-12-29 23:39:02:

camlp4r is an executable in fact.

I think you should use BuildTools: camlp4r

If it works for you, you can close this bug.

user824 replied on 2010-12-30 07:47:22:

BuildTools only seems to check for availibility of the tool, it doesn't actually use it while building.

Attached a small testcase, when I run it I get this: $ oasis setup ... $ ./configure ... $ make ocaml setup.ml -build I: Running command '/usr/bin/ocamlbuild revised.byte -tag debug' Finished, 0 targets (0 cached) in 00:00:00.

If I add <*.ml>: camlp4r to the _tags file it works.

user102 replied on 2010-12-30 11:23:37:

I plan to have support in 0.3.0 for syntax extension.

See [#773] and [#574].

gildor478 commented 3 years ago

revised.ml.txt