rules_ocaml icon indicating copy to clipboard operation
rules_ocaml copied to clipboard

A Bazel Language Support Package for OCaml

Results 61 rules_ocaml issues
Sort by recently updated
recently updated
newest added

As a new user of Bazel it would be extremely helpful to have an example of how to build a plain OCaml project using `rules_ocaml`. Similar to how https://bazel.build/start/java shows...

We get this warning for OPAM package deps where an OCaml archive uses `Extra C object files` to list a cc dependency. This is because the `coswitch` tool adds a...

Task: support -pack and -for-pack. Use a transition function to configure submodules automatically, so users can just list the submodules in the `submodules` attribute of `ocaml_ns_pack`.

Task: support -output-obj by making `ocaml-binary` emit a `CcInfo` provider, so e.g. `cc_library` or `cc_binary` targets can depend directly on OCaml obj modules.

Currently we always use -custom. Task: support standard executables with ocamlrun.

Use case: target depends on a cmi only (Tezos does this). If we have the mli file then we just use ocaml_signature. If we have a singleton (only the ml...

* Lots of PPXes: optimize build time * Lots of PPX transformations: optimize ppx executables for speed We can control `ppx_executable` builds using Bazel's toolchain and platform mechanisms. The `ppx`...

# Preprocessing `utils/config.mlp` files is preprocessed with `sed`, using makefiles. See `utils/Makefile` target `config.ml`. Platform-specific directories under `asmcomp` contain `emit.mlp`, e.g. `asmcomp/i386/emit.mlp`. These are processed by a rule in `asmcomp/dune`:...

A Dune library (unwrapped) may include modules from multiple subdirectories. To support this in OBazl, we to be able to aggregate `ocaml_library` targets: if lib A depends on libs B...