obazl / rules_ocaml

A Bazel Language Support Package for OCaml

Home Page:https://obazl.github.io/docs_obazl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use platforms/toolchains for native/binary mode?

mobileink opened this issue · comments

Currently the toolchain contains both compilers, and code checks a config flag to decide which compiler to use.

But various other bits depend on mode, e.g file extensions like cmo v. cmx.

Does it make sense to have one toolchain per mode?