ocaml / ocamlbuild

The legacy OCamlbuild build manager
Other
122 stars 81 forks source link

Tags "keep_docs" and "keep_locs" not honored when using ".mlpack"s #256

Closed jacquev6 closed 7 years ago

jacquev6 commented 7 years ago

Hello,

When tag keep_docs (resp. keep_locs) is used, ocamlc -pack is called without -keep-docs (resp. -keep-locs) option.

This gist is a minimal example showing the issue and proving that ocamlc -pack -keep-docs does keep the docs in the produced .mli file.

I might dive into ocamlbuild to provide a fix for that, but I wanted to report it first, in case it's a one-hour fix for someone who knows how.

Thanks!

gasche commented 7 years ago

Thanks for the report -- nice issue number!