obazl / rules_ocaml

A Bazel Language Support Package for OCaml
https://obazl.github.io/docs_obazl
Apache License 2.0
32 stars 7 forks source link

support `-i` flag to generate interface files #36

Closed mobileink closed 2 years ago

mobileink commented 3 years ago

It should be (very) easy to generate an interface file (ocamlopt -i) via the Bazel ui. maybe as an aspect?

mobileink commented 2 years ago

To handle this we wrote a tool in tools_obazl. Example:

bazel run @tools_obazl//sig:extract --obj=//mwe/hello_module_dyad:Hello