Closed samoht closed 8 years ago
I have to think about it, though the fact that this seems to be motivated by a cppo
use does not motivate me.
In any case I think only positive information should be propagated as tags. I'd also like to avoid polluting too much the build invocation.
A first good step would be to expose the base build command so that people can easily reuse and extend it.
Yes exposing the build base command will already covers most of my use-case.
Ok so we'll already go with this to see how it goes.
Would it be possible to pass some parts of the build context to the
ocamlbuild
invocations?See https://github.com/samoht/irmin-watcher/blob/9e1329d567155ffa65d728ac6a11daa8d81e4718/pkg/pkg.ml#L25-L31 for instance, which redefine the main build command to add
-tag with-X
or-tag without-X
to the ocamlbuild invocations depending on whethertopkg build -- --with-X
is called withtrue
orfalse
.